2017-02-07 14:05:30 -06:00
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
|
|
|
--> $DIR/if_let_redundant_pattern_matching.rs:9:12
|
|
|
|
|
|
|
|
|
9 | if let Ok(_) = Ok::<i32, i32>(42) {}
|
2017-05-03 05:51:47 -05:00
|
|
|
| -------^^^^^--------------------- help: try this `if Ok::<i32, i32>(42).is_ok()`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(if_let_redundant_pattern_matching)] implied by #[deny(clippy)]
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/if_let_redundant_pattern_matching.rs:4:9
|
|
|
|
|
|
|
|
|
4 | #![deny(clippy)]
|
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_err()`
|
|
|
|
--> $DIR/if_let_redundant_pattern_matching.rs:14:12
|
|
|
|
|
|
|
|
|
14 | if let Err(_) = Err::<i32, i32>(42) {
|
2017-05-03 05:51:47 -05:00
|
|
|
| -------^^^^^^---------------------- help: try this `if Err::<i32, i32>(42).is_err()`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(if_let_redundant_pattern_matching)] implied by #[deny(clippy)]
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_none()`
|
|
|
|
--> $DIR/if_let_redundant_pattern_matching.rs:20:12
|
|
|
|
|
|
|
|
|
20 | if let None = None::<()> {
|
2017-05-03 05:51:47 -05:00
|
|
|
| -------^^^^------------- help: try this `if None::<()>.is_none()`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(if_let_redundant_pattern_matching)] implied by #[deny(clippy)]
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
|
|
|
--> $DIR/if_let_redundant_pattern_matching.rs:26:12
|
|
|
|
|
|
|
|
|
26 | if let Some(_) = Some(42) {
|
2017-05-03 05:51:47 -05:00
|
|
|
| -------^^^^^^^----------- help: try this `if Some(42).is_some()`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
= note: #[deny(if_let_redundant_pattern_matching)] implied by #[deny(clippy)]
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|