2021-09-26 13:48:56 -05:00
|
|
|
warning: irrefutable `if let` guard pattern
|
2021-09-26 15:17:08 -05:00
|
|
|
--> $DIR/issue-88118-2.rs:10:29
|
2021-09-26 13:48:56 -05:00
|
|
|
|
|
|
|
|
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
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
2021-09-26 13:48:56 -05:00
|
|
|
|
2021-09-26 15:17:08 -05:00
|
|
|
warning: 1 warning emitted
|
2021-09-26 13:48:56 -05:00
|
|
|
|