blob: 49b9a52aff9188610f0c192f2224671a41fa5761 [file] [log] [blame]
error: expected type, found `3`
--> $DIR/struct-literal-in-if.rs:13:12
|
LL | x: 3 //~ ERROR expected type, found `3`
| ^ expecting a type here because of type ascription
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
--> $DIR/struct-literal-in-if.rs:14:12
|
LL | }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
| ^ expected one of `.`, `;`, `?`, `}`, or an operator here
error[E0423]: expected value, found struct `Foo`
--> $DIR/struct-literal-in-if.rs:12:8
|
LL | if Foo { //~ ERROR expected value, found struct `Foo`
| ^^^ did you mean `(Foo { /* fields */ })`?
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0423`.