2021-03-22 00:45:38 -04:00
|
|
|
warning: irrefutable `if let` pattern
|
2023-03-29 22:18:20 +02:00
|
|
|
--> $DIR/issue-78720.rs:7:8
|
2021-03-22 00:45:38 -04:00
|
|
|
|
|
2021-08-08 11:49:13 -03:00
|
|
|
LL | if let a = "" {
|
|
|
|
| ^^^^^^^^^^
|
2021-03-22 00:45:38 -04: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 19:55:36 +04:00
|
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
2021-03-22 00:45:38 -04:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|