summary refs log tree commit diff
path: root/src/test/ui/terminal-width/flag-json.rs
blob: 3d2530e204b3336943d618c880414612be503df2 (plain)
1
2
3
4
5
6
7
8
9
// compile-flags: -Z terminal-width=20 --error-format=json

// This test checks that `-Z terminal-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
}