summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2497-if-let-chains/issue-90722.rs
blob: 6b7d88356508549ce72a53ad57afd2daa952420a (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

#![feature(let_chains)]

fn main() {
    let x = Some(vec!["test"]);

    if let Some(v) = x && v.is_empty() {
        println!("x == Some([])");
    }
}