about summary refs log tree commit diff
path: root/tests/ui/str/str-as-char.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/str/str-as-char.rs')
-rw-r--r--tests/ui/str/str-as-char.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/str/str-as-char.rs b/tests/ui/str/str-as-char.rs
new file mode 100644
index 00000000000..09b9dfc590d
--- /dev/null
+++ b/tests/ui/str/str-as-char.rs
@@ -0,0 +1,5 @@
+// run-rustfix
+
+fn main() {
+    println!('●●'); //~ ERROR character literal may only contain one codepoint
+}