summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-if.rs
blob: e8c54ca7ab2932a6ca03b238fd5676c34664ea91 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let Some(_) = Some(()) else if true {
        //~^ ERROR conditional `else if` is not supported for `let...else`
        return;
    } else {
        return;
    };
}