summaryrefslogtreecommitdiffstats
path: root/src/test/ui/str/str-as-char.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/str/str-as-char.stderr')
-rw-r--r--src/test/ui/str/str-as-char.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/str/str-as-char.stderr b/src/test/ui/str/str-as-char.stderr
new file mode 100644
index 000000000..c3cb488e3
--- /dev/null
+++ b/src/test/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
+