blob: 334fdacb81ec4b04007a6a068198bdf4d2c3b689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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`
}
}
|