summaryrefslogtreecommitdiffstats
path: root/tests/ui/let-else/let-else.rs
blob: 3505533e63f14736fbc85b587524803e78806b84 (plain)
1
2
3
4
5
6
7
8
// run-pass

fn main() {
    let Some(x) = Some(1) else {
        return;
    };
    assert_eq!(x, 1);
}