summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/keyword-enum-as-identifier.stderr
blob: 92d092ccb65b4c8781ef4c5fcbbaa7874e710649 (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 previous error