]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/fn-field-parse-error-ice.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / parser / fn-field-parse-error-ice.stderr
1 error: expected `,`, or `}`, found keyword `fn`
2 --> $DIR/fn-field-parse-error-ice.rs:4:16
3 |
4 LL | inner : dyn fn ()
5 | ^ help: try adding a comma: `,`
6
7 error: expected identifier, found keyword `fn`
8 --> $DIR/fn-field-parse-error-ice.rs:4:17
9 |
10 LL | struct Baz {
11 | --- while parsing this struct
12 LL | inner : dyn fn ()
13 | ^^ expected identifier, found keyword
14 |
15 help: escape `fn` to use it as an identifier
16 |
17 LL | inner : dyn r#fn ()
18 | ++
19
20 error[E0412]: cannot find type `dyn` in this scope
21 --> $DIR/fn-field-parse-error-ice.rs:4:13
22 |
23 LL | inner : dyn fn ()
24 | ^^^ not found in this scope
25
26 error: aborting due to 3 previous errors
27
28 For more information about this error, try `rustc --explain E0412`.