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