rust/tests/ui/let-else/let-else-if.stderr
Esteban Küber 9fd7784b97 Fix ... in multline code-skips in suggestions
When we have long code skips, we write `...` in the line number gutter.

For suggestions, we were "centering" the `...` with the line, but that was consistent with what we do in every other case.
2024-06-20 04:25:17 +00:00

18 lines
392 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