]>
Commit | Line | Data |
---|---|---|
2b03887a FG |
1 | error: expected identifier, found keyword `fn` |
2 | --> $DIR/incomplete-fn-in-struct-definition.rs:4:5 | |
3 | | | |
4 | LL | struct S { | |
5 | | - while parsing this struct | |
6 | LL | fn: u8 | |
7 | | ^^ expected identifier, found keyword | |
8 | | | |
9 | help: escape `fn` to use it as an identifier | |
10 | | | |
11 | LL | r#fn: u8 | |
12 | | ++ | |
13 | ||
14 | error: aborting due to previous error | |
15 |