fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
674 B24 linesraw
1error: character literal may only contain one codepoint
2  --> $DIR/lex-bad-char-literals-5.rs:1:18
3   |
4LL | static c: char = '\x10\x10';
5   |                  ^^^^^^^^^^
6   |
7help: if you meant to write a `str` literal, use double quotes
8   |
9LL | static c: char = "\x10\x10";
10   |                  ^^^^^^^^^^
11
12error: character literal may only contain one codepoint
13  --> $DIR/lex-bad-char-literals-5.rs:5:20
14   |
15LL |     let ch: &str = '\x10\x10';
16   |                    ^^^^^^^^^^
17   |
18help: if you meant to write a `str` literal, use double quotes
19   |
20LL |     let ch: &str = "\x10\x10";
21   |                    ^^^^^^^^^^
22
23error: aborting due to 2 previous errors
24