]>
Commit | Line | Data |
---|---|---|
2b03887a FG |
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 |