2018-10-20 15:36:17 -05:00
|
|
|
error: expected type, found `3`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/struct-literal-in-for.rs:13: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 `{`
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/struct-literal-in-for.rs:14: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
|
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
error[E0423]: expected value, found struct `Foo`
|
|
|
|
--> $DIR/struct-literal-in-for.rs:12:14
|
|
|
|
|
|
|
|
|
LL | for x in Foo { //~ ERROR expected value, found struct `Foo`
|
|
|
|
| ^^^ did you mean `(Foo { /* fields */ })`?
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-01-06 09:33:05 -06:00
|
|
|
For more information about this error, try `rustc --explain E0423`.
|