File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11error: casting a character literal to `u8` truncates
2- --> tests/ui/char_lit_as_u8_suggestions .rs:4:13
2+ --> tests/ui/char_lit_as_u8 .rs:4:13
33 |
44LL | let _ = 'a' as u8;
55 | ^^^^^^^^^ help: use a byte literal instead: `b'a'`
@@ -9,23 +9,23 @@ LL | let _ = 'a' as u8;
99 = help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
1010
1111error: casting a character literal to `u8` truncates
12- --> tests/ui/char_lit_as_u8_suggestions .rs:6:13
12+ --> tests/ui/char_lit_as_u8 .rs:6:13
1313 |
1414LL | let _ = '\n' as u8;
1515 | ^^^^^^^^^^ help: use a byte literal instead: `b'\n'`
1616 |
1717 = note: `char` is four bytes wide, but `u8` is a single byte
1818
1919error: casting a character literal to `u8` truncates
20- --> tests/ui/char_lit_as_u8_suggestions .rs:8:13
20+ --> tests/ui/char_lit_as_u8 .rs:8:13
2121 |
2222LL | let _ = '\0' as u8;
2323 | ^^^^^^^^^^ help: use a byte literal instead: `b'\0'`
2424 |
2525 = note: `char` is four bytes wide, but `u8` is a single byte
2626
2727error: casting a character literal to `u8` truncates
28- --> tests/ui/char_lit_as_u8_suggestions .rs:10:13
28+ --> tests/ui/char_lit_as_u8 .rs:10:13
2929 |
3030LL | let _ = '\x01' as u8;
3131 | ^^^^^^^^^^^^ help: use a byte literal instead: `b'\x01'`
You can’t perform that action at this time.
0 commit comments