rust/tests/ui/rfcs/rfc-2497-if-let-chains/issue-88498.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
177 B
Rust
Raw Normal View History

2022-01-18 16:38:17 -06:00
// check-pass
pub enum UnOp {
Not(Vec<()>),
}
pub fn foo() {
if let Some(x) = None {
match x {
UnOp::Not(_) => {}
}
}
}
fn main() {
}