rust/src/test/ui/str/str-as-char.stderr

23 lines
803 B
Plaintext
Raw Normal View History

error: character literal may only contain one codepoint
2018-12-25 09:56:47 -06:00
--> $DIR/str-as-char.rs:4:14
|
2019-01-17 14:24:17 -06:00
LL | println!('●●'); //~ ERROR character literal may only contain one codepoint
| ^^^^
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
| ^^^^
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