2019-10-15 00:20:50 +00:00
|
|
|
error[E0532]: expected unit struct, unit variant or constant, found tuple variant `MyEnum::Tuple`
|
2019-09-21 15:36:12 +00:00
|
|
|
--> $DIR/issue-63983.rs:8:9
|
|
|
|
|
|
2019-09-22 18:27:55 +00:00
|
|
|
LL | Tuple(i32),
|
|
|
|
| ---------- `MyEnum::Tuple` defined here
|
|
|
|
...
|
2019-09-21 15:36:12 +00:00
|
|
|
LL | MyEnum::Tuple => "",
|
2020-08-10 00:52:29 +00:00
|
|
|
| ^^^^^^^^^^^^^ help: use the tuple variant pattern syntax instead: `MyEnum::Tuple(_)`
|
2019-09-21 15:36:12 +00:00
|
|
|
|
2022-10-25 16:15:15 +00:00
|
|
|
error[E0533]: expected unit struct, unit variant or constant, found struct variant `MyEnum::Struct`
|
2019-09-21 15:36:12 +00:00
|
|
|
--> $DIR/issue-63983.rs:10:9
|
|
|
|
|
|
|
|
|
LL | MyEnum::Struct => "",
|
2022-10-25 16:15:15 +00:00
|
|
|
| ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant
|
2019-09-21 15:36:12 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2022-10-25 16:15:15 +00:00
|
|
|
Some errors have detailed explanations: E0532, E0533.
|
|
|
|
For more information about an error, try `rustc --explain E0532`.
|