2018-02-21 09:12:23 -06:00
|
|
|
error: only u8 can be cast into char
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cast_char.rs:4:23
|
2018-02-06 07:57:08 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | const XYZ: char = 0x1F888 as char;
|
2018-02-06 07:57:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cast_char.rs:1:9
|
2018-02-06 07:57:08 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![deny(overflowing_literals)]
|
2018-02-06 07:57:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-02-21 09:12:23 -06:00
|
|
|
error: only u8 can be cast into char
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/cast_char.rs:6:22
|
2018-02-06 07:57:08 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | const XY: char = 129160 as char;
|
2018-02-06 07:57:08 -06:00
|
|
|
| ^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|