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

error: aborting due to 1 previous error