]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/if_let_redundant_pattern_matching.stderr
Fix the test suite after cargo update
[rust.git] / clippy_tests / examples / if_let_redundant_pattern_matching.stderr
1 error: redundant pattern matching, consider using `is_ok()`
2  --> if_let_redundant_pattern_matching.rs:9:12
3   |
4 9 |     if let Ok(_) = Ok::<i32, i32>(42) {}
5   |     -------^^^^^--------------------- help: try this `if Ok::<i32, i32>(42).is_ok()`
6   |
7   = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
8
9 error: redundant pattern matching, consider using `is_err()`
10   --> if_let_redundant_pattern_matching.rs:11:12
11    |
12 11 |     if let Err(_) = Err::<i32, i32>(42) {
13    |     -------^^^^^^---------------------- help: try this `if Err::<i32, i32>(42).is_err()`
14    |
15    = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
16
17 error: redundant pattern matching, consider using `is_none()`
18   --> if_let_redundant_pattern_matching.rs:14:12
19    |
20 14 |     if let None = None::<()> {
21    |     -------^^^^------------- help: try this `if None::<()>.is_none()`
22    |
23    = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
24
25 error: redundant pattern matching, consider using `is_some()`
26   --> if_let_redundant_pattern_matching.rs:17:12
27    |
28 17 |     if let Some(_) = Some(42) {
29    |     -------^^^^^^^----------- help: try this `if Some(42).is_some()`
30    |
31    = note: `-D if-let-redundant-pattern-matching` implied by `-D warnings`
32
33 error: aborting due to previous error(s)
34
35
36 To learn more, run the command again with --verbose.