summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/keyword-typeof.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/keyword-typeof.stderr')
-rw-r--r--src/test/ui/parser/keyword-typeof.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/keyword-typeof.stderr b/src/test/ui/parser/keyword-typeof.stderr
new file mode 100644
index 000000000..4c5324505
--- /dev/null
+++ b/src/test/ui/parser/keyword-typeof.stderr
@@ -0,0 +1,13 @@
+error: expected identifier, found reserved keyword `typeof`
+ --> $DIR/keyword-typeof.rs:2:9
+ |
+LL | let typeof = ();
+ | ^^^^^^ expected identifier, found reserved keyword
+ |
+help: escape `typeof` to use it as an identifier
+ |
+LL | let r#typeof = ();
+ | ++
+
+error: aborting due to previous error
+