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 | |