blob: c63fd61c5dec9ad3a51fa457dae719fdebc60685 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error: conditional `else if` is not supported for `let...else`
--> $DIR/let-else-if.rs:2:33
|
LL | let Some(_) = Some(()) else if true {
| ^^ expected `{`
|
help: try placing this code inside a block
|
LL ~ let Some(_) = Some(()) else { if true {
LL |
...
LL | return;
LL ~ } };
|
error: aborting due to previous error
|