blob: 63b28dffabc1d088d533cfc24ec972f971259f13 [file] [edit]
error: redundant pattern matching
--> tests/ui/crashes/ice-7169.rs:8:12
|
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
| ^^^^^
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`
help: consider using `is_ok()`
|
LL - if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
LL + if Ok::<_, ()>(A::<String>::default()).is_ok() {}
|
error: aborting due to 1 previous error