Do not suggest let_else
if no bindings would be introduced
This commit is contained in:
parent
0d92752b8a
commit
c3a998e82a
7 changed files with 1 additions and 45 deletions
|
@ -19,10 +19,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
|
|||
|
|
||||
LL | if let (1, (Some(1), 2..=3)) = (1, (None, 2)) { todo!() }
|
||||
| ++ ~~~~~~~~~~~
|
||||
help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
|
||||
|
|
||||
LL | let (1, (Some(1), 2..=3)) = (1, (None, 2)) else { todo!() };
|
||||
| ++++++++++++++++
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue