blob: e339dc01f46ed282afc4c20bc3380e4ab87d0ed6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// https://github.com/rust-lang/rust/issues/29383
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`
}
}
|