mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
14 lines
310 B
Rust
14 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`
|
|
}
|
|
}
|