rust/tests/ui/crashes/ice-7169.stderr

11 lines
403 B
Plaintext
Raw Normal View History

error: redundant pattern matching, consider using `is_ok()`
2023-06-10 06:43:30 -05:00
--> $DIR/ice-7169.rs:10: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