2021-10-17 07:02:52 +02:00
|
|
|
error: conditional `else if` is not supported for `let...else`
|
2022-02-27 07:08:31 +01:00
|
|
|
--> $DIR/let-else-if.rs:2:33
|
2021-10-17 07:02:52 +02: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 20:43:24 +00:00
|
|
|
LL |
|
2024-06-20 04:25:17 +00:00
|
|
|
...
|
2022-01-12 20:43:24 +00:00
|
|
|
LL | return;
|
2021-10-17 07:02:52 +02:00
|
|
|
LL ~ } };
|
|
|
|
|
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-10-17 07:02:52 +02:00
|
|
|
|