mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +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`
|
|
}
|
|
}
|