summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/new-unicode-escapes-3.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/new-unicode-escapes-3.stderr')
-rw-r--r--tests/ui/parser/new-unicode-escapes-3.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/parser/new-unicode-escapes-3.stderr b/tests/ui/parser/new-unicode-escapes-3.stderr
new file mode 100644
index 000000000..f5a0f8fc7
--- /dev/null
+++ b/tests/ui/parser/new-unicode-escapes-3.stderr
@@ -0,0 +1,18 @@
+error: invalid unicode character escape
+ --> $DIR/new-unicode-escapes-3.rs:2:15
+ |
+LL | let s1 = "\u{d805}";
+ | ^^^^^^^^ invalid escape
+ |
+ = help: unicode escape must not be a surrogate
+
+error: invalid unicode character escape
+ --> $DIR/new-unicode-escapes-3.rs:3:15
+ |
+LL | let s2 = "\u{ffffff}";
+ | ^^^^^^^^^^ invalid escape
+ |
+ = help: unicode escape must be at most 10FFFF
+
+error: aborting due to 2 previous errors
+