]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/keyword-if-as-identifier.stderr
Stabilize `param_attrs` in Rust 1.39.0
[rust.git] / src / test / ui / parser / keyword-if-as-identifier.stderr
1 error: expected identifier, found keyword `if`
2   --> $DIR/keyword-if-as-identifier.rs:4:9
3    |
4 LL |     let if = "foo";
5    |         ^^ expected identifier, found keyword
6 help: you can escape reserved keywords to use them as identifiers
7    |
8 LL |     let r#if = "foo";
9    |         ^^^^
10
11 error: aborting due to previous error
12