]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/issue-88118-2.stderr
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / ui / closures / 2229_closure_analysis / issue-88118-2.stderr
1 warning: irrefutable `if let` guard pattern
2   --> $DIR/issue-88118-2.rs:10:29
3    |
4 LL |             Registry if let _ = registry.try_find_description() => { }
5    |                             ^
6    |
7    = note: this pattern will always match, so the guard is useless
8    = help: consider removing the guard and adding a `let` inside the match arm
9    = note: `#[warn(irrefutable_let_patterns)]` on by default
10
11 warning: 1 warning emitted
12