rust/tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr
2023-01-11 09:32:08 +00:00

13 lines
435 B
Plaintext

warning: irrefutable `if let` guard pattern
--> $DIR/issue-88118-2.rs:10:29
|
LL | Registry if let _ = registry.try_find_description() => { }
| ^
|
= note: this pattern will always match, so the guard is useless
= help: consider removing the guard and adding a `let` inside the match arm
= note: `#[warn(irrefutable_let_patterns)]` on by default
warning: 1 warning emitted