2023-01-23 22:31:45 -06:00
|
|
|
error: this `if` expression is missing a block after the condition
|
|
|
|
--> $DIR/accidental-if.rs:3:5
|
|
|
|
|
|
|
|
|
LL | if let Some(y) = x else {
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
|
help: add a block here
|
|
|
|
--> $DIR/accidental-if.rs:3:23
|
|
|
|
|
|
|
|
|
LL | if let Some(y) = x else {
|
|
|
|
| ^
|
|
|
|
help: remove the `if` if you meant to write a `let...else` statement
|
|
|
|
|
|
2023-01-30 16:09:40 -06:00
|
|
|
LL - if let Some(y) = x else {
|
|
|
|
LL + let Some(y) = x else {
|
|
|
|
|
|
2023-01-23 22:31:45 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|