2021-10-17 00:02:52 -05:00
|
|
|
error: conditional `else if` is not supported for `let...else`
|
2022-02-27 00:08:31 -06:00
|
|
|
--> $DIR/let-else-if.rs:2:33
|
2021-10-17 00:02:52 -05:00
|
|
|
|
|
|
|
|
LL | let Some(_) = Some(()) else if true {
|
|
|
|
| ^^ expected `{`
|
|
|
|
|
|
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL ~ let Some(_) = Some(()) else { if true {
|
2022-01-12 14:43:24 -06:00
|
|
|
LL |
|
2022-06-06 10:26:50 -05:00
|
|
|
...
|
2022-01-12 14:43:24 -06:00
|
|
|
LL | return;
|
2021-10-17 00:02:52 -05:00
|
|
|
LL ~ } };
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|