2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected unit struct, unit variant or constant, found tuple variant `MyEnum::Tuple`
|
2019-09-21 10:36:12 -05:00
|
|
|
--> $DIR/issue-63983.rs:8:9
|
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | Tuple(i32),
|
|
|
|
| ---------- `MyEnum::Tuple` defined here
|
|
|
|
...
|
2019-09-21 10:36:12 -05:00
|
|
|
LL | MyEnum::Tuple => "",
|
2020-08-09 19:52:29 -05:00
|
|
|
| ^^^^^^^^^^^^^ help: use the tuple variant pattern syntax instead: `MyEnum::Tuple(_)`
|
2019-09-21 10:36:12 -05:00
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0532]: expected unit struct, unit variant or constant, found struct variant `MyEnum::Struct`
|
2019-09-21 10:36:12 -05:00
|
|
|
--> $DIR/issue-63983.rs:10:9
|
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | Struct{ s: i32 },
|
|
|
|
| ---------------- `MyEnum::Struct` defined here
|
|
|
|
...
|
2019-09-21 10:36:12 -05:00
|
|
|
LL | MyEnum::Struct => "",
|
2020-07-09 19:42:07 -05:00
|
|
|
| ^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `MyEnum::Struct { s }`
|
2019-09-21 10:36:12 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|