rust/tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs
2024-02-16 20:02:50 +00:00

17 lines
178 B
Rust

//@ check-pass
pub enum UnOp {
Not(Vec<()>),
}
pub fn foo() {
if let Some(x) = None {
match x {
UnOp::Not(_) => {}
}
}
}
fn main() {
}