]> git.proxmox.com Git - rustc.git/blame - src/test/ui/structs/incomplete-fn-in-struct-definition.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / structs / incomplete-fn-in-struct-definition.stderr
CommitLineData
2b03887a
FG
1error: expected identifier, found keyword `fn`
2 --> $DIR/incomplete-fn-in-struct-definition.rs:4:5
3 |
4LL | struct S {
5 | - while parsing this struct
6LL | fn: u8
7 | ^^ expected identifier, found keyword
8 |
9help: escape `fn` to use it as an identifier
10 |
11LL | r#fn: u8
12 | ++
13
14error: aborting due to previous error
15