rust/src/test/ui/parser/struct-literal-in-for.stderr

15 lines
526 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: expected type, found `3`
--> $DIR/struct-literal-in-for.rs:25: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-for.rs:26: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