2021-05-05 08:35:14 -05:00
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-06-10 06:43:30 -05:00
|
|
|
--> $DIR/ice-7169.rs:10:12
|
2021-05-05 08:35:14 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^-------------------------------------- help: try: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
|
2021-05-05 08:35:14 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|