]>
Commit | Line | Data |
---|---|---|
0bf4aa26 | 1 | error: character literal may only contain one codepoint |
9fa01778 | 2 | --> $DIR/lex-bad-char-literals-3.rs:1:18 |
0bf4aa26 | 3 | | |
9fa01778 XL |
4 | LL | static c: char = '●●'; |
5 | | ^^^^ | |
0bf4aa26 XL |
6 | help: if you meant to write a `str` literal, use double quotes |
7 | | | |
9fa01778 XL |
8 | LL | static c: char = "●●"; |
9 | | ^^^^ | |
0bf4aa26 | 10 | |
9fa01778 XL |
11 | error: character literal may only contain one codepoint |
12 | --> $DIR/lex-bad-char-literals-3.rs:5:20 | |
0731742a | 13 | | |
9fa01778 XL |
14 | LL | let ch: &str = '●●'; |
15 | | ^^^^ | |
16 | help: if you meant to write a `str` literal, use double quotes | |
0731742a | 17 | | |
9fa01778 XL |
18 | LL | let ch: &str = "●●"; |
19 | | ^^^^ | |
0731742a XL |
20 | |
21 | error: aborting due to 2 previous errors | |
0bf4aa26 | 22 |