// want to do this if not let Some("pattern") = val { doSomething(); } // can instead do if !matches!(val, Some("pattern")) { doSomething(); }
if !matches!(val, Some(let x))