1 error: expected type, found `3`
2 --> $DIR/struct-literal-in-if.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 expects an ascribed type after the colon
9 --> $DIR/struct-literal-in-if.rs:13:9
13 = help: this might be indicative of a syntax error elsewhere
15 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
16 --> $DIR/struct-literal-in-if.rs:14:12
19 | ^ expected one of `.`, `;`, `?`, `}`, or an operator here
21 error[E0423]: expected value, found struct `Foo`
22 --> $DIR/struct-literal-in-if.rs:12:8
25 | ^^^ did you mean `(Foo { /* fields */ })`?
27 error: aborting due to 3 previous errors
29 For more information about this error, try `rustc --explain E0423`.