2021-03-21 23:45:38 -05:00
|
|
|
warning: irrefutable `if let` pattern
|
2023-03-29 15:18:20 -05:00
|
|
|
--> $DIR/issue-78720.rs:7:8
|
2021-03-21 23:45:38 -05:00
|
|
|
|
|
2021-08-08 09:49:13 -05:00
|
|
|
LL | if let a = "" {
|
|
|
|
| ^^^^^^^^^^
|
2021-03-21 23:45:38 -05:00
|
|
|
|
|
|
|
|
= note: this pattern will always match, so the `if let` is useless
|
|
|
|
= help: consider replacing the `if let` with a `let`
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
2021-03-21 23:45:38 -05:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|