2019-09-21 15:36:12 +00:00
|
|
|
error[E0532]: expected unit struct/variant or constant, found tuple variant `MyEnum::Tuple`
|
|
|
|
--> $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 => "",
|
2019-09-22 18:27:55 +00:00
|
|
|
| ^^^^^^^^^^^^^ did you mean `MyEnum::Tuple( /* fields */ )`?
|
2019-09-21 15:36:12 +00:00
|
|
|
|
|
|
|
error[E0532]: expected unit struct/variant or constant, found struct variant `MyEnum::Struct`
|
|
|
|
--> $DIR/issue-63983.rs:10:9
|
|
|
|
|
|
2019-09-22 18:27:55 +00:00
|
|
|
LL | Struct{ s: i32 },
|
|
|
|
| ---------------- `MyEnum::Struct` defined here
|
|
|
|
...
|
2019-09-21 15:36:12 +00:00
|
|
|
LL | MyEnum::Struct => "",
|
|
|
|
| ^^^^^^^^^^^^^^ did you mean `MyEnum::Struct { /* fields */ }`?
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|