2022-07-06 11:57:41 +01:00
|
|
|
//@ compile-flags: --diagnostic-width=20 --error-format=json
|
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() {
|
2025-05-02 17:56:07 +03:00
|
|
|
let _: () = 42; //~ ERROR mismatched types
|
|
|
|
|
//~| NOTE expected `()`, found integer
|
|
|
|
|
//~| NOTE expected due to this
|
2022-06-16 16:39:11 +01:00
|
|
|
}
|