2017-12-11 01:35:53 -06:00
|
|
|
error: character literal may only contain one codepoint
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/str-as-char.rs:4:14
|
2017-12-11 01:35:53 -06:00
|
|
|
|
|
2019-01-17 14:24:17 -06:00
|
|
|
LL | println!('●●'); //~ ERROR character literal may only contain one codepoint
|
2017-12-11 01:35:53 -06:00
|
|
|
| ^^^^
|
|
|
|
help: if you meant to write a `str` literal, use double quotes
|
|
|
|
|
|
2019-01-17 14:24:17 -06:00
|
|
|
LL | println!("●●"); //~ ERROR character literal may only contain one codepoint
|
2017-12-11 01:35:53 -06:00
|
|
|
| ^^^^
|
|
|
|
|
2019-01-17 14:24:17 -06:00
|
|
|
error: format argument must be a string literal
|
|
|
|
--> $DIR/str-as-char.rs:4:14
|
|
|
|
|
|
|
|
|
LL | println!('●●'); //~ ERROR character literal may only contain one codepoint
|
|
|
|
| ^^^^
|
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
|
|
|
LL | println!("{}", '●●'); //~ ERROR character literal may only contain one codepoint
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-12-11 01:35:53 -06:00
|
|
|
|