2022-07-06 11:57:41 +01:00
|
|
|
//@ compile-flags: --diagnostic-width=20 --error-format=json
|
2023-12-21 15:14:43 +05:30
|
|
|
//@ error-pattern:expected `()`, found integer
|
2022-06-16 16:39:11 +01:00
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
}
|