rust/tests/ui/issues/issue-pr29383.rs
2023-01-11 09:32:08 +00:00

15 lines
310 B
Rust

enum E {
A,
B,
}
fn main() {
match None {
None => {}
Some(E::A(..)) => {}
//~^ ERROR expected tuple struct or tuple variant, found unit variant `E::A`
Some(E::B(..)) => {}
//~^ ERROR expected tuple struct or tuple variant, found unit variant `E::B`
}
}