]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/keyword-try-as-identifier-edition2018.stderr
Merge commit 'a5d597637dcb78dc73f93561ce474f23d4177c35' into clippyup
[rust.git] / src / test / ui / parser / keyword-try-as-identifier-edition2018.stderr
1 error: expected identifier, found reserved keyword `try`
2   --> $DIR/keyword-try-as-identifier-edition2018.rs:4:9
3    |
4 LL |     let try = "foo";
5    |         ^^^ expected identifier, found reserved keyword
6    |
7 help: you can escape reserved keywords to use them as identifiers
8    |
9 LL |     let r#try = "foo";
10    |         ~~~~~
11
12 error: aborting due to previous error
13