1 error: redundant pattern matching, consider using `is_ok()`
2 --> $DIR/ice-7169.rs:8:12
4 LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
5 | -------^^^^^-------------------------------------- help: try this: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
7 = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
9 error: aborting due to previous error