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