]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/fn-field-parse-error-ice.stderr
Point (again) to more expressions with their type, even if not fully resolved
[rust.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: functions are not allowed in struct definitions
8   --> $DIR/fn-field-parse-error-ice.rs:4:17
9    |
10 LL |     inner : dyn fn ()
11    |                 ^^
12    |
13    = help: unlike in C++, Java, and C#, functions are declared in `impl` blocks
14    = help: see https://doc.rust-lang.org/book/ch05-03-method-syntax.html for more information
15
16 error[E0412]: cannot find type `dyn` in this scope
17   --> $DIR/fn-field-parse-error-ice.rs:4:13
18    |
19 LL |     inner : dyn fn ()
20    |             ^^^ not found in this scope
21
22 error: aborting due to 3 previous errors
23
24 For more information about this error, try `rustc --explain E0412`.