mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 03:54:40 +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`
|
|
}
|
|
}
|