summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/char_lit_as_u8.stderr
blob: 39fc9d6dda674d127b9f922a36c3a05faa5f763d (plain)
1
2
3
4
5
6
7
8
9
10
11
error: casting a character literal to `u8` truncates
  --> $DIR/char_lit_as_u8.rs:4:13
   |
LL |     let _ = '❤' as u8; // no suggestion, since a byte literal won't work.
   |             ^^^^^^^^^
   |
   = note: `char` is four bytes wide, but `u8` is a single byte
   = note: `-D clippy::char-lit-as-u8` implied by `-D warnings`

error: aborting due to previous error