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

error: aborting due to 1 previous error