2018-10-20 15:36:17 -05:00
|
|
|
error: character literal may only contain one codepoint
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/lex-bad-char-literals-3.rs:3:5
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | '●●' //~ ERROR: character literal may only contain one codepoint
|
|
|
|
| ^^^^
|
|
|
|
help: if you meant to write a `str` literal, use double quotes
|
|
|
|
|
|
|
|
|
LL | "●●" //~ ERROR: character literal may only contain one codepoint
|
|
|
|
| ^^^^
|
|
|
|
|
2019-01-17 14:24:17 -06:00
|
|
|
error: character literal may only contain one codepoint
|
|
|
|
--> $DIR/lex-bad-char-literals-3.rs:7:20
|
|
|
|
|
|
|
|
|
LL | let ch: &str = '●●'; //~ ERROR: character literal may only contain one codepoint
|
|
|
|
| ^^^^
|
|
|
|
help: if you meant to write a `str` literal, use double quotes
|
|
|
|
|
|
|
|
|
LL | let ch: &str = "●●"; //~ ERROR: character literal may only contain one codepoint
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/lex-bad-char-literals-3.rs:7:20
|
|
|
|
|
|
|
|
|
LL | let ch: &str = '●●'; //~ ERROR: character literal may only contain one codepoint
|
|
|
|
| ^^^^ expected &str, found char
|
|
|
|
|
|
|
|
|
= note: expected type `&str`
|
|
|
|
found type `char`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-01-17 14:24:17 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|