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([])"); } }