mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-08 13:55:25 +00:00
10 lines
301 B
Rust
10 lines
301 B
Rust
|
// compile-flags: --output-width=20 --error-format=json
|
||
|
|
||
|
// This test checks that `-Z output-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 arguments to this function are incorrect
|
||
|
}
|