2017-02-07 20:05:30 +00:00
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> if_let_redundant_pattern_matching.rs:9:12
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
9 | if let Ok(_) = Ok::<i32, i32>(42) {}
|
2017-05-03 10:51:47 +00:00
|
|
|
| -------^^^^^--------------------- help: try this `if Ok::<i32, i32>(42).is_ok()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_err()`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> if_let_redundant_pattern_matching.rs:11:12
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:31:44 +00:00
|
|
|
11 | if let Err(_) = Err::<i32, i32>(42) {
|
2017-05-03 10:51:47 +00:00
|
|
|
| -------^^^^^^---------------------- help: try this `if Err::<i32, i32>(42).is_err()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_none()`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> if_let_redundant_pattern_matching.rs:14:12
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:31:44 +00:00
|
|
|
14 | if let None = None::<()> {
|
2017-05-03 10:51:47 +00:00
|
|
|
| -------^^^^------------- help: try this `if None::<()>.is_none()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
2017-05-17 15:51:35 +00:00
|
|
|
--> if_let_redundant_pattern_matching.rs:17:12
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 11:31:44 +00:00
|
|
|
17 | if let Some(_) = Some(42) {
|
2017-05-03 10:51:47 +00:00
|
|
|
| -------^^^^^^^----------- help: try this `if Some(42).is_some()`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-26 07:21:54 +00:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|