]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/char_lit_as_u8.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / char_lit_as_u8.stderr
1 error: casting a character literal to `u8` truncates
2 --> $DIR/char_lit_as_u8.rs:5:13
3 |
4 LL | let _ = '❤' as u8;
5 | ^^^^^^^^^
6 |
7 = note: `char` is four bytes wide, but `u8` is a single byte
8 = note: `-D clippy::char-lit-as-u8` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`
10
11 error: aborting due to previous error
12