Skip to content

Commit ff2b5e6

Browse files
committed
test: make suggestions the main file
since it's the one that has suggestions
1 parent ad9686e commit ff2b5e6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
File renamed without changes.

tests/ui/char_lit_as_u8_suggestions.stderr renamed to tests/ui/char_lit_as_u8.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
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
33
|
44
LL | 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

1111
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
1313
|
1414
LL | 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

1919
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
2121
|
2222
LL | 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

2727
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
2929
|
3030
LL | let _ = '\x01' as u8;
3131
| ^^^^^^^^^^^^ help: use a byte literal instead: `b'\x01'`

0 commit comments

Comments
 (0)