blob: 11536f9f4cc485499e86f226ab92dab72599b6ed [file] [log] [blame] [edit]
fn main() {
let x = Some(123);
if let Some(_) == x {}
//~^ ERROR expected `=`, found `==`
if Some(_) = x {}
//~^ ERROR mismatched types
if None = x { }
//~^ ERROR mismatched types
}