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`
2018-12-25 09:56:47 -06:00
--> $DIR/struct-literal-in-for.rs:15:12
2018-10-20 15:36:17 -05:00
|
LL | x: 3 //~ ERROR expected type, found `3`
| ^ expecting a type here because of type ascription
error: expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
2018-12-25 09:56:47 -06:00
--> $DIR/struct-literal-in-for.rs:16:12
2018-10-20 15:36:17 -05:00
|
LL | }.hi() { //~ ERROR expected one of `.`, `;`, `?`, `}`, or an operator, found `{`
| ^ expected one of `.`, `;`, `?`, `}`, or an operator here
error: aborting due to 2 previous errors