mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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.
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/dont-suggest-break-thru-item.rs:7:17
|
|
|
|
|
LL | / if true {
|
|
LL | | Err(1)
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
... |
|
|
LL | | }
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
= note: expected unit type `()`
|
|
found enum `Result<_, {integer}>`
|
|
help: you might have meant to return this value
|
|
|
|
|
LL | return Err(1);
|
|
| ++++++ +
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/dont-suggest-break-thru-item.rs:21:17
|
|
|
|
|
LL | / if true {
|
|
LL | | Err(1)
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
... |
|
|
LL | | }
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
= note: expected unit type `()`
|
|
found enum `Result<_, {integer}>`
|
|
help: you might have meant to return this value
|
|
|
|
|
LL | return Err(1);
|
|
| ++++++ +
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/dont-suggest-break-thru-item.rs:35:17
|
|
|
|
|
LL | / if true {
|
|
LL | | Err(1)
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
LL | |
|
|
LL | | }
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
= note: expected unit type `()`
|
|
found enum `Result<_, {integer}>`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/dont-suggest-break-thru-item.rs:47:17
|
|
|
|
|
LL | / if true {
|
|
LL | | Err(1)
|
|
| | ^^^^^^ expected `()`, found `Result<_, {integer}>`
|
|
LL | |
|
|
LL | | }
|
|
| |_____________- expected this to be `()`
|
|
|
|
|
= note: expected unit type `()`
|
|
found enum `Result<_, {integer}>`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|