rust/tests/ui/let-else/let-else-if.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

18 lines
393 B
Plaintext

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 1 previous error