summaryrefslogtreecommitdiffstats
path: root/src/test/ui/diagnostic-width/flag-json.rs
blob: 51a1fb447c7d22df069e10271318c75b40c5100d (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: --diagnostic-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
}