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 error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
8 --> $DIR/struct-literal-in-if.rs:14:12
11 | ^ expected one of `.`, `;`, `?`, `}`, or an operator here
13 error[E0423]: expected value, found struct `Foo`
14 --> $DIR/struct-literal-in-if.rs:12:8
17 | ^^^ did you mean `(Foo { /* fields */ })`?
19 error: aborting due to 3 previous errors
21 For more information about this error, try `rustc --explain E0423`.