#![feature(let_chains)] fn let_or_guard(x: Result, ()>) { match x { Ok(opt) if let Some(4) = opt || false => {} //~^ ERROR `let` expressions are not supported here _ => {} } } fn hiding_unsafe_mod(x: Result, ()>) { match x { Ok(opt) if { unsafe mod a {}; //~^ ERROR module cannot be declared unsafe false } => {} _ => {} } } fn main() {}