rust/src/test/ui/issues/issue-pr29383.rs
2018-12-25 21:08:33 -07:00

13 lines
274 B
Rust

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