// edition:2021 //check-pass fn test1() { let foo : [Vec; 3] = ["String".into(), "String".into(), "String".into()]; let c = || { match foo { _ => () }; }; drop(foo); c(); } fn test2() { let foo : Option<[Vec; 3]> = Some(["String".into(), "String".into(), "String".into()]); let c = || { match foo { Some(_) => 1, _ => 2 }; }; c(); } fn main() { test1(); test2(); }