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 1
1
error: 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
3
3
|
4
4
LL | let _ = 'a' as u8;
5
5
| ^^^^^^^^^ help: use a byte literal instead: `b'a'`
@@ -9,23 +9,23 @@ LL | let _ = 'a' as u8;
9
9
= help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
10
10
11
11
error: 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
13
13
|
14
14
LL | let _ = '\n' as u8;
15
15
| ^^^^^^^^^^ help: use a byte literal instead: `b'\n'`
16
16
|
17
17
= note: `char` is four bytes wide, but `u8` is a single byte
18
18
19
19
error: 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
21
21
|
22
22
LL | let _ = '\0' as u8;
23
23
| ^^^^^^^^^^ help: use a byte literal instead: `b'\0'`
24
24
|
25
25
= note: `char` is four bytes wide, but `u8` is a single byte
26
26
27
27
error: 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
29
29
|
30
30
LL | let _ = '\x01' as u8;
31
31
| ^^^^^^^^^^^^ help: use a byte literal instead: `b'\x01'`
You can’t perform that action at this time.
0 commit comments