]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/lex-bad-char-literals-5.stderr
Rollup merge of #59436 - gnzlbg:update_jemalloc, r=alexcrichton
[rust.git] / src / test / ui / parser / 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 help: if you meant to write a `str` literal, use double quotes
7    |
8 LL | static c: char = "\x10\x10";
9    |                  ^^^^^^^^^^
10
11 error: character literal may only contain one codepoint
12   --> $DIR/lex-bad-char-literals-5.rs:5:20
13    |
14 LL |     let ch: &str = '\x10\x10';
15    |                    ^^^^^^^^^^
16 help: if you meant to write a `str` literal, use double quotes
17    |
18 LL |     let ch: &str = "\x10\x10";
19    |                    ^^^^^^^^^^
20
21 error: aborting due to 2 previous errors
22