summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/flag-json.rs
blob: 820f1a049e1f77bba8c3ff0981ac7ef5274af6a3 (plain)
1
2
3
4
5
6
7
8
9
// 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;
}