2021-05-29 17:07:34 -05:00
|
|
|
error: expected `,`, or `}`, found keyword `fn`
|
|
|
|
--> $DIR/fn-field-parse-error-ice.rs:4:16
|
|
|
|
|
|
|
|
|
LL | inner : dyn fn ()
|
|
|
|
| ^ help: try adding a comma: `,`
|
|
|
|
|
2022-09-27 03:20:55 -05:00
|
|
|
error: expected identifier, found keyword `fn`
|
2021-05-29 17:07:34 -05:00
|
|
|
--> $DIR/fn-field-parse-error-ice.rs:4:17
|
|
|
|
|
|
2022-09-26 09:13:38 -05:00
|
|
|
LL | struct Baz {
|
|
|
|
| --- while parsing this struct
|
2021-05-29 17:07:34 -05:00
|
|
|
LL | inner : dyn fn ()
|
2022-09-27 03:20:55 -05:00
|
|
|
| ^^ expected identifier, found keyword
|
2021-05-29 17:07:34 -05:00
|
|
|
|
|
2022-09-27 03:20:55 -05:00
|
|
|
help: escape `fn` to use it as an identifier
|
|
|
|
|
|
|
|
|
LL | inner : dyn r#fn ()
|
|
|
|
| ++
|
2021-05-29 17:07:34 -05:00
|
|
|
|
|
|
|
error[E0412]: cannot find type `dyn` in this scope
|
|
|
|
--> $DIR/fn-field-parse-error-ice.rs:4:13
|
|
|
|
|
|
|
|
|
LL | inner : dyn fn ()
|
|
|
|
| ^^^ not found in this scope
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0412`.
|