fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
609 B20 linesraw
1error: only `u8` can be cast into `char`
2  --> $DIR/cast-char.rs:4:23
3   |
4LL |     const XYZ: char = 0x1F888 as char;
5   |                       ^^^^^^^^^^^^^^^ help: use a `char` literal instead: `'\u{1F888}'`
6   |
7note: the lint level is defined here
8  --> $DIR/cast-char.rs:1:9
9   |
10LL | #![deny(overflowing_literals)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error: only `u8` can be cast into `char`
14  --> $DIR/cast-char.rs:6:22
15   |
16LL |     const XY: char = 129160 as char;
17   |                      ^^^^^^^^^^^^^^ help: use a `char` literal instead: `'\u{1F888}'`
18
19error: aborting due to 2 previous errors
20