Files
rust/tests/ui/pattern/unit-variant-pattern-matching-29383.stderr

22 lines
686 B
Plaintext
Raw Normal View History

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
|
LL | A,
| - `E::A` defined here
...
2019-03-09 15:03:44 +03:00
LL | Some(E::A(..)) => {}
| ^^^^^^^^ help: use this syntax instead: `E::A`
2018-07-15 14:11:54 -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
|
LL | B,
| - `E::B` defined here
...
2019-03-09 15:03:44 +03:00
LL | Some(E::B(..)) => {}
| ^^^^^^^^ 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`.