]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/incomplete-fn-in-struct-definition.stderr
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / structs / incomplete-fn-in-struct-definition.stderr
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