mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
177 B
Rust
17 lines
177 B
Rust
// check-pass
|
|
|
|
pub enum UnOp {
|
|
Not(Vec<()>),
|
|
}
|
|
|
|
pub fn foo() {
|
|
if let Some(x) = None {
|
|
match x {
|
|
UnOp::Not(_) => {}
|
|
}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
}
|