1 #![feature(if_let_guard)]
3 struct A { a: Box<i32> }
6 let x = A { a: Box::new(n) };
8 A { a: v } if { drop(v); true } => v,
9 //~^ ERROR cannot move out of `v` in pattern guard
14 fn if_let_guard(n: i32) {
15 let x = A { a: Box::new(n) };
17 A { a: v } if let Some(()) = { drop(v); Some(()) } => v,
18 //~^ ERROR cannot move out of `v` in pattern guard