rust/src/test/ui/cast_char.stderr

21 lines
593 B
Plaintext
Raw Normal View History

2018-02-21 16:12:23 +01:00
error: only u8 can be cast into char
--> $DIR/cast_char.rs:14:23
|
2018-02-23 03:42:32 +03:00
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
|
2018-02-23 03:42:32 +03:00
LL | #![deny(overflowing_literals)]
| ^^^^^^^^^^^^^^^^^^^^
2018-02-21 16:12:23 +01:00
error: only u8 can be cast into char
--> $DIR/cast_char.rs:16:22
|
2018-02-23 03:42:32 +03:00
LL | const XY: char = 129160 as char;
| ^^^^^^^^^^^^^^ help: use a char literal instead: `'/u{1F888}'`
error: aborting due to 2 previous errors