summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/keyword-type-as-identifier.stderr
blob: 5e6c6d9e1d51cf2055c0fc9f818101fb87b22566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: expected identifier, found keyword `type`
  --> $DIR/keyword-type-as-identifier.rs:4:9
   |
LL |     let type = "foo";
   |         ^^^^ expected identifier, found keyword
   |
help: escape `type` to use it as an identifier
   |
LL |     let r#type = "foo";
   |         ++

error: aborting due to 1 previous error