summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-if.rs
blob: c3a17330d6e2fe117c8a81264c746f88b799ebb7 (plain)
1
2
3
4
5
6
7
8
9
10
#![feature(let_else)]

fn main() {
    let Some(_) = Some(()) else if true {
        //~^ ERROR conditional `else if` is not supported for `let...else`
        return;
    } else {
        return;
    };
}