summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-7169.stderr
blob: 5a9cd32380a19700ab44dc1a67c89934c8f1c19a (plain)
1
2
3
4
5
6
7
8
9
10
error: redundant pattern matching, consider using `is_ok()`
  --> $DIR/ice-7169.rs:8:12
   |
LL |     if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
   |     -------^^^^^-------------------------------------- help: try this: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
   |
   = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`

error: aborting due to previous error