]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/bad-let-as-field.stderr
Fix let removal suggestion in struct
[rust.git] / src / test / ui / parser / bad-let-as-field.stderr
1 error: expected identifier, found keyword `let`
2   --> $DIR/bad-let-as-field.rs:2:5
3    |
4 LL | struct Foo {
5    |        --- while parsing this struct
6 LL |     let: i32,
7    |     ^^^ expected identifier, found keyword
8    |
9 help: escape `let` to use it as an identifier
10    |
11 LL |     r#let: i32,
12    |     ++
13
14 error: aborting due to previous error
15