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