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

error: aborting due to 1 previous error