about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-7169.stderr
blob: ac7d2862d3ade542fd7efbf1997dafe7c3120ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: redundant pattern matching, consider using `is_ok()`
  --> tests/ui/crashes/ice-7169.rs:10:12
   |
LL |     if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
   |     -------^^^^^-------------------------------------- help: try: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
   |
   = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`

error: aborting due to 1 previous error