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