summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/new-unicode-escapes-4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/new-unicode-escapes-4.rs')
-rw-r--r--tests/ui/parser/new-unicode-escapes-4.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/parser/new-unicode-escapes-4.rs b/tests/ui/parser/new-unicode-escapes-4.rs
new file mode 100644
index 000000000..79882713e
--- /dev/null
+++ b/tests/ui/parser/new-unicode-escapes-4.rs
@@ -0,0 +1,4 @@
+pub fn main() {
+ let s = "\u{lol}";
+ //~^ ERROR invalid character in unicode escape: `l`
+}