blob: 2bcc0aa2782dd055547d23effb04008cd1f60c57 [file] [log] [blame]
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`
}
}