fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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