blob: 41b675f7960c55415dab35aacc08981e32d2b482 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|