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