mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
af44e719fa
Resolves Issue #118752
10 lines
295 B
Rust
10 lines
295 B
Rust
// compile-flags: --diagnostic-width=20 --error-format=json
|
|
// error-pattern:expected `()`, found integer
|
|
|
|
// 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;
|
|
}
|