2024-06-17 15:14:07 +00:00
|
|
|
//@ revisions: ascii unicode
|
|
|
|
|
//@[ascii] compile-flags: --diagnostic-width=20
|
2024-11-18 17:36:45 +11:00
|
|
|
//@[unicode] compile-flags: -Zunstable-options --error-format=human-unicode --diagnostic-width=20
|
2022-06-16 16:39:11 +01:00
|
|
|
|
|
|
|
|
// This test checks that `-Z output-width` effects the human error output by restricting it to an
|
|
|
|
|
// arbitrarily low value so that the effect is visible.
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let _: () = 42;
|
2024-06-17 15:14:07 +00:00
|
|
|
//[ascii]~^ ERROR mismatched types
|
2022-06-16 16:39:11 +01:00
|
|
|
}
|