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