rust/src/test/ui/parser/struct-literal-in-if.stderr
2018-12-25 21:08:33 -07:00

15 lines
524 B
Plaintext

error: expected type, found `3`
--> $DIR/struct-literal-in-if.rs:15: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:16:12
|
LL | }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
| ^ expected one of `.`, `;`, `?`, `}`, or an operator here
error: aborting due to 2 previous errors