summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-for-as-identifier.stderr
blob: 813bb3f3bd302983bc925f98264d3aa9a03c7570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 1 previous error