blob: 26f9a15a7d00c9422f3e81ea287a89a90ada6310 (
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 previous error
|