mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-27 18:56:24 +00:00

Consider comments and bare delimiters the same as an "empty line" for purposes of hiding rendered code output of long multispans. This results in more aggressive shortening of rendered output without losing too much context, specially in `*.stderr` tests that have "hidden" comments.
17 lines
397 B
Plaintext
17 lines
397 B
Plaintext
error: `loop...else` loops are not supported
|
|
--> $DIR/loop-else-err.rs:4:7
|
|
|
|
|
LL | loop {
|
|
| ---- `else` is attached to this loop
|
|
LL |
|
|
LL | } else {
|
|
| _______^
|
|
... |
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: consider moving this `else` clause to a separate `if` statement and use a `bool` variable to control if it should run
|
|
|
|
error: aborting due to 1 previous error
|
|
|