3678e5c97e
This commit makes the JSON emitter use `-Z terminal-width` in the "rendered" field of the JSON output. Signed-off-by: David Wood <david@davidtw.co>
10 lines
282 B
Rust
10 lines
282 B
Rust
// compile-flags: -Z terminal-width=20 --error-format=json
|
|
|
|
// This test checks that `-Z terminal-width` effects the JSON error output by restricting it to an
|
|
// arbitrarily low value so that the effect is visible.
|
|
|
|
fn main() {
|
|
let _: () = 42;
|
|
//~^ ERROR mismatched types
|
|
}
|