os-rust/tests/ui/parser/recover/recover-enum2.stderr

38 lines
1.1 KiB
Text
Raw Normal View History

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
|
LL | Var3 {
| ---- while parsing this struct
2019-03-09 15:03:44 +03:00
LL | abc: {},
| ^ 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 {})
| ^ expected one of 7 possible tokens
|
= help: enum variants can be `Variant`, `Variant = <integer>`, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }`
2018-10-20 23:36:17 +03: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
For more information about this error, try `rustc --explain E0308`.