mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 05:04:23 +00:00
10 lines
297 B
Rust
10 lines
297 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;
|
|
}
|