1 error: struct literals are not allowed here
2 --> $DIR/struct-literal-restrictions-in-lamda.rs:12:14
10 help: surround the struct literal with parentheses
17 error[E0308]: mismatched types
18 --> $DIR/struct-literal-restrictions-in-lamda.rs:12:11
24 | |__________^ expected `bool`, found closure
26 = note: expected type `bool`
27 found closure `[closure@$DIR/struct-literal-restrictions-in-lamda.rs:12:11: 14:11]`
28 help: use parentheses to call this closure
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0308`.