1 #![feature(if_let_guard)]
7 let my_str = "hello".to_owned();
9 Some(_) if { drop(my_str); false } => {}
11 None => { foo(my_str); } //~ ERROR [E0382]
14 let my_str = "hello".to_owned();
16 Some(_) if let Some(()) = { drop(my_str); None } => {}
18 None => { foo(my_str); } //~ ERROR [E0382]