]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/lex-bad-char-literals-3.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / parser / lex-bad-char-literals-3.stderr
CommitLineData
0bf4aa26 1error: character literal may only contain one codepoint
9fa01778 2 --> $DIR/lex-bad-char-literals-3.rs:1:18
0bf4aa26 3 |
9fa01778
XL
4LL | static c: char = '●●';
5 | ^^^^
0bf4aa26
XL
6help: if you meant to write a `str` literal, use double quotes
7 |
9fa01778
XL
8LL | static c: char = "●●";
9 | ^^^^
0bf4aa26 10
9fa01778
XL
11error: character literal may only contain one codepoint
12 --> $DIR/lex-bad-char-literals-3.rs:5:20
0731742a 13 |
9fa01778
XL
14LL | let ch: &str = '●●';
15 | ^^^^
16help: if you meant to write a `str` literal, use double quotes
0731742a 17 |
9fa01778
XL
18LL | let ch: &str = "●●";
19 | ^^^^
0731742a
XL
20
21error: aborting due to 2 previous errors
0bf4aa26 22