summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/char/whitespace-character-literal.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/char/whitespace-character-literal.stderr')
-rw-r--r--tests/ui/parser/char/whitespace-character-literal.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/parser/char/whitespace-character-literal.stderr b/tests/ui/parser/char/whitespace-character-literal.stderr
new file mode 100644
index 000000000..d73de41a8
--- /dev/null
+++ b/tests/ui/parser/char/whitespace-character-literal.stderr
@@ -0,0 +1,16 @@
+error: character literal may only contain one codepoint
+ --> $DIR/whitespace-character-literal.rs:5:30
+ |
+LL | let _hair_space_around = ' x​';
+ | ^--^
+ | |
+ | help: consider removing the non-printing characters: `x`
+ |
+note: there are non-printing characters, the full sequence is `\u{200a}x\u{200b}`
+ --> $DIR/whitespace-character-literal.rs:5:31
+ |
+LL | let _hair_space_around = ' x​';
+ | ^^
+
+error: aborting due to previous error
+