forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstr-as-char.stderr
More file actions
22 lines (19 loc) · 803 Bytes
/
str-as-char.stderr
File metadata and controls
22 lines (19 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error: character literal may only contain one codepoint
--> $DIR/str-as-char.rs:4:14
|
LL | println!('●●'); //~ ERROR character literal may only contain one codepoint
| ^^^^
help: if you meant to write a `str` literal, use double quotes
|
LL | println!("●●"); //~ ERROR character literal may only contain one codepoint
| ^^^^
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