2018-10-20 15:36:17 -05:00
|
|
|
error: expected type, found `{`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/recover-enum2.rs:8:18
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | abc: {}, //~ ERROR: expected type, found `{`
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/recover-enum2.rs:27:22
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | Nope(i32 {}) //~ ERROR: found `{`
|
|
|
|
| ^ expected one of 7 possible tokens here
|
|
|
|
|
|
|
|
error: expected one of `!`, `&&`, `&`, `(`, `)`, `*`, `+`, `,`, `::`, `<`, `?`, `[`, `_`, `crate`, `dyn`, `extern`, `fn`, `for`, `impl`, `pub`, `unsafe`, `}`, or lifetime, found `{`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/recover-enum2.rs:27:22
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | Nope(i32 {}) //~ ERROR: found `{`
|
|
|
|
| ^ expected one of 23 possible tokens here
|
|
|
|
|
|
|
|
error: expected expression, found reserved identifier `_`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/recover-enum2.rs:32:22
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
|
|
|
LL | let bad_syntax = _; //~ ERROR: expected expression, found reserved identifier `_`
|
|
|
|
| ^ expected expression
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|