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