]> git.lizzy.rs Git - rust.git/blob - tests/ui/diagnostic-width/flag-json.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / diagnostic-width / flag-json.rs
1 // compile-flags: --diagnostic-width=20 --error-format=json
2
3 // This test checks that `-Z output-width` effects the JSON error output by restricting it to an
4 // arbitrarily low value so that the effect is visible.
5
6 fn main() {
7     let _: () = 42;
8     //~^ ERROR arguments to this function are incorrect
9 }