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