mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
11 lines
402 B
Plaintext
11 lines
402 B
Plaintext
|
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
|
||
|
|