]> git.lizzy.rs Git - rust.git/blob - tests/ui/char_lit_as_u8.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / char_lit_as_u8.stderr
1 error: casting a character literal to `u8` truncates
2   --> $DIR/char_lit_as_u8.rs:4:13
3    |
4 LL |     let _ = '❤' as u8; // no suggestion, since a byte literal won't work.
5    |             ^^^^^^^^^
6    |
7    = note: `-D clippy::char-lit-as-u8` implied by `-D warnings`
8    = note: `char` is four bytes wide, but `u8` is a single byte
9
10 error: aborting due to previous error
11