diff options
Diffstat (limited to 'tests/ui/str/str-as-char.stderr')
-rw-r--r-- | tests/ui/str/str-as-char.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/str/str-as-char.stderr b/tests/ui/str/str-as-char.stderr new file mode 100644 index 000000000..c3cb488e3 --- /dev/null +++ b/tests/ui/str/str-as-char.stderr @@ -0,0 +1,13 @@ +error: character literal may only contain one codepoint + --> $DIR/str-as-char.rs:4:14 + | +LL | println!('●●'); + | ^^^^ + | +help: if you meant to write a `str` literal, use double quotes + | +LL | println!("●●"); + | ~~~~ + +error: aborting due to previous error + |