blob: 2609e2951ec5487ba42ca5f1b4fb8e8bee87cc22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
warning: irrefutable `if let` pattern
--> $DIR/issue-78720.rs:7: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
|