]> git.lizzy.rs Git - rust.git/blob - tests/ui/char_lit_as_u8.stderr
remove all //~ from tests
[rust.git] / tests / ui / char_lit_as_u8.stderr
1 error: casting character literal to u8. `char`s are 4 bytes wide in rust, so casting to u8 truncates them
2  --> $DIR/char_lit_as_u8.rs:7:13
3   |
4 7 |     let c = 'a' as u8;
5   |             ^^^^^^^^^
6   |
7 note: lint level defined here
8  --> $DIR/char_lit_as_u8.rs:4:9
9   |
10 4 | #![deny(char_lit_as_u8)]
11   |         ^^^^^^^^^^^^^^
12   = help: Consider using a byte literal instead:
13           b'a'
14
15 error: aborting due to previous error
16