2021-05-06 09:51:22 +00:00
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/crashes/ice-7169.rs:10:12
|
2021-05-06 09:51:22 +00:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, ()>(A::<String>::default()) {}
|
2023-07-17 08:19:29 +00:00
|
|
|
| -------^^^^^-------------------------------------- help: try: `if Ok::<_, ()>(A::<String>::default()).is_ok()`
|
2021-05-06 09:51:22 +00:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::redundant_pattern_matching)]`
|
2021-05-06 09:51:22 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-05-06 09:51:22 +00:00
|
|
|
|