about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/char_lit_as_u8_unfixable.stderr
blob: 49e555ae638a22ca7a61cf5c06e2b06807352f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: casting a character literal to `u8` truncates
  --> tests/ui/char_lit_as_u8_unfixable.rs:6:13
   |
LL |     let _ = '❤' as u8;
   |             ^^^^^^^^^
   |
   = note: `char` is four bytes wide, but `u8` is a single byte
   = note: `-D clippy::char-lit-as-u8` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::char_lit_as_u8)]`

error: aborting due to 1 previous error