rust/tests/ui/let-else/let-else-if.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
391 B
Plaintext
Raw Normal View History

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 |
2022-06-06 10:26:50 -05:00
...
LL | return;
LL ~ } };
|
error: aborting due to previous error