summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr')
-rw-r--r--tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr b/tests/ui/closures/2229_closure_analysis/migrations/issue-78720.stderr
new file mode 100644
index 000000000..36a80e694
--- /dev/null
+++ b/tests/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: this pattern will always match, so the `if let` is useless
+ = help: consider replacing the `if let` with a `let`
+ = note: `#[warn(irrefutable_let_patterns)]` on by default
+
+warning: 1 warning emitted
+