1 error: expected type, found `3`
2 --> $DIR/struct-literal-restrictions-in-lamda.rs:13:12
5 | ^ expecting a type here because of type ascription
7 = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
8 note: this expression is annotated with type ascription...
9 --> $DIR/struct-literal-restrictions-in-lamda.rs:13:9
13 note: ...due to this, which is why a type is expected after
14 --> $DIR/struct-literal-restrictions-in-lamda.rs:13:10
18 = help: this might be indicative of a syntax error elsewhere
20 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
21 --> $DIR/struct-literal-restrictions-in-lamda.rs:14:12
24 | ^ expected one of `.`, `;`, `?`, `}`, or an operator here
26 error[E0423]: expected value, found struct `Foo`
27 --> $DIR/struct-literal-restrictions-in-lamda.rs:12:14
30 | ^^^ did you mean `(Foo { /* fields */ })`?
32 error[E0599]: no method named `hi` found for type `()` in the current scope
33 --> $DIR/struct-literal-restrictions-in-lamda.rs:14:7
38 error: aborting due to 4 previous errors
40 Some errors occurred: E0423, E0599.
41 For more information about an error, try `rustc --explain E0423`.