]> git.proxmox.com Git - rustc.git/blame - tests/ui/rfc-2497-if-let-chains/issue-88498.rs
New upstream version 1.71.1+dfsg1
[rustc.git] / tests / ui / rfc-2497-if-let-chains / issue-88498.rs
CommitLineData
5099ac24
FG
1// check-pass
2
3pub enum UnOp {
4 Not(Vec<()>),
5}
6
7pub fn foo() {
8 if let Some(x) = None {
9 match x {
10 UnOp::Not(_) => {}
11 }
12 }
13}
14
15fn main() {
16}