error: expected identifier, found keyword `pub` | |
--> $DIR/issue-28433.rs:4:5 | |
| | |
LL | pub duck, | |
| ^^^ expected identifier, found keyword | |
help: you can escape reserved keywords to use them as identifiers | |
| | |
LL | r#pub duck, | |
| ^^^^^ | |
error: expected one of `(`, `,`, `=`, `{`, or `}`, found `duck` | |
--> $DIR/issue-28433.rs:4:9 | |
| | |
LL | pub duck, | |
| ^^^^ expected one of `(`, `,`, `=`, `{`, or `}` here | |
error: aborting due to 2 previous errors | |