summary refs log tree commit diff
path: root/src/test/ui/cast_char.stderr
blob: 600d7e61a0986018af5515c29684555ca361efc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: only u8 can be cast into char
  --> $DIR/cast_char.rs:14:23
   |
LL |     const XYZ: char = 0x1F888 as char;
   |                       ^^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
   |
note: lint level defined here
  --> $DIR/cast_char.rs:11:9
   |
LL | #![deny(overflowing_literals)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: only u8 can be cast into char
  --> $DIR/cast_char.rs:16:22
   |
LL |     const XY: char = 129160 as char;
   |                      ^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`

error: aborting due to 2 previous errors