mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
9fd7784b97
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.
18 lines
392 B
Plaintext
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
|
|
|