diff options
Diffstat (limited to 'src/test/ui/diagnostic-width/flag-human.rs')
-rw-r--r-- | src/test/ui/diagnostic-width/flag-human.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/diagnostic-width/flag-human.rs b/src/test/ui/diagnostic-width/flag-human.rs new file mode 100644 index 000000000..289bfbabd --- /dev/null +++ b/src/test/ui/diagnostic-width/flag-human.rs @@ -0,0 +1,9 @@ +// compile-flags: --diagnostic-width=20 + +// 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; + //~^ ERROR mismatched types +} |