diff options
Diffstat (limited to 'src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr')
-rw-r--r-- | src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr b/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr new file mode 100644 index 000000000..41b675f79 --- /dev/null +++ b/src/test/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr @@ -0,0 +1,12 @@ +warning: irrefutable `if let` pattern + --> $DIR/issue-78720.rs:6:8 + | +LL | if let a = "" { + | ^^^^^^^^^^ + | + = note: `#[warn(irrefutable_let_patterns)]` on by default + = note: this pattern will always match, so the `if let` is useless + = help: consider replacing the `if let` with a `let` + +warning: 1 warning emitted + |