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
|
|
|
|
2022-10-25 11:15:15 -05:00
|
|
|
error[E0533]: 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
|
|
|
|
|
|
|
|
|
LL | MyEnum::Struct => "",
|
2022-10-25 11:15:15 -05:00
|
|
|
| ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
|
2019-09-21 10:36:12 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2022-10-25 11:15:15 -05:00
|
|
|
Some errors have detailed explanations: E0532, E0533.
|
|
|
|
For more information about an error, try `rustc --explain E0532`.
|