]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lexer/lex-bad-char-literals-5.stderr
Rollup merge of #99939 - saethlin:pre-sort-tests, r=thomcc,jackh726
[rust.git] / src / test / ui / lexer / lex-bad-char-literals-5.stderr
1 error: character literal may only contain one codepoint
2   --> $DIR/lex-bad-char-literals-5.rs:1:18
3    |
4 LL | static c: char = '\x10\x10';
5    |                  ^^^^^^^^^^
6    |
7 help: if you meant to write a `str` literal, use double quotes
8    |
9 LL | static c: char = "\x10\x10";
10    |                  ~~~~~~~~~~
11
12 error: character literal may only contain one codepoint
13   --> $DIR/lex-bad-char-literals-5.rs:5:20
14    |
15 LL |     let ch: &str = '\x10\x10';
16    |                    ^^^^^^^^^^
17    |
18 help: if you meant to write a `str` literal, use double quotes
19    |
20 LL |     let ch: &str = "\x10\x10";
21    |                    ~~~~~~~~~~
22
23 error: aborting due to 2 previous errors
24