2018-10-20 23:36:17 +03:00
|
|
|
error: expected type, found `{`
|
2019-05-31 13:50:04 -07:00
|
|
|
--> $DIR/recover-enum2.rs:6:18
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2022-09-26 23:13:38 +09:00
|
|
|
LL | Var3 {
|
|
|
|
| ---- while parsing this struct
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | abc: {},
|
2019-07-17 11:40:36 -07:00
|
|
|
| ^ expected type
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
|
|
error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{`
|
2019-05-31 13:50:04 -07:00
|
|
|
--> $DIR/recover-enum2.rs:25:22
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2023-11-06 23:19:14 +00:00
|
|
|
LL | enum Test4 {
|
|
|
|
| ----- while parsing this enum
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Nope(i32 {})
|
2019-10-28 11:08:53 -07:00
|
|
|
| ^ expected one of 7 possible tokens
|
2023-11-07 00:09:33 +00:00
|
|
|
|
|
|
|
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2023-11-06 23:41:49 +00:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-enum2.rs:11:9
|
|
|
|
|
|
|
|
|
LL | let () = 1;
|
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found `()`
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/recover-enum2.rs:27:13
|
|
|
|
|
|
|
|
|
LL | let () = 1;
|
|
|
|
| ^^ - this expression has type `{integer}`
|
|
|
|
| |
|
|
|
|
| expected integer, found `()`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-10-20 23:36:17 +03:00
|
|
|
|
2023-11-06 23:41:49 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|