rust/tests/ui/structs/incomplete-fn-in-struct-definition.stderr
2023-01-11 09:32:08 +00:00

16 lines
349 B
Plaintext

error: expected identifier, found keyword `fn`
--> $DIR/incomplete-fn-in-struct-definition.rs:4:5
|
LL | struct S {
| - while parsing this struct
LL | fn: u8
| ^^ expected identifier, found keyword
|
help: escape `fn` to use it as an identifier
|
LL | r#fn: u8
| ++
error: aborting due to previous error