2019-10-14 17:20:50 -07:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::A`
|
2025-07-13 16:39:45 -04:00
|
|
|
--> $DIR/unit-variant-pattern-matching-29383.rs:10:14
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2021-05-02 11:46:29 +02:00
|
|
|
LL | A,
|
|
|
|
|
| - `E::A` defined here
|
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Some(E::A(..)) => {}
|
2021-05-02 11:46:29 +02:00
|
|
|
| ^^^^^^^^ help: use this syntax instead: `E::A`
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found unit variant `E::B`
|
2025-07-13 16:39:45 -04:00
|
|
|
--> $DIR/unit-variant-pattern-matching-29383.rs:12:14
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
2021-05-02 11:46:29 +02:00
|
|
|
LL | B,
|
|
|
|
|
| - `E::B` defined here
|
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Some(E::B(..)) => {}
|
2021-05-02 11:46:29 +02:00
|
|
|
| ^^^^^^^^ help: use this syntax instead: `E::B`
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|