summaryrefslogtreecommitdiffstats
path: root/tests/ui/unpretty/pretty-let-else.rs
blob: b5ae529699da230633724cc84cf21655f0f4a35b (plain)
1
2
3
4
5
6
7
8
9
10
// compile-flags: -Zunpretty=hir
// check-pass



fn foo(x: Option<u32>) {
    let Some(_) = x else { panic!() };
}

fn main() {}