#![feature(plugin)] #![plugin(clippy)] #![deny(clippy)] #![deny(if_let_redundant_pattern_matching)] fn main() { if let Ok(_) = Ok::(42) {} if let Err(_) = Err::(42) { } if let None = None::<()> { } if let Some(_) = Some(42) { } if Ok::(42).is_ok() { } if Err::(42).is_err() { } if None::.is_none() { } if Some(42).is_some() { } if let Ok(x) = Ok::(42) { println!("{}", x); } }