]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2497-if-let-chains/issue-88498.rs
Rollup merge of #93663 - sunfishcode:sunfishcode/as-raw-name, r=joshtriplett
[rust.git] / src / test / ui / rfc-2497-if-let-chains / issue-88498.rs
1 // check-pass
2
3 pub enum UnOp {
4     Not(Vec<()>),
5 }
6
7 pub fn foo() {
8     if let Some(x) = None {
9         match x {
10             UnOp::Not(_) => {}
11         }
12     }
13 }
14
15 fn main() {
16 }