summaryrefslogtreecommitdiffstats
path: root/src/test/ui/diagnostic-width/flag-human.rs
blob: 289bfbabd949bb48264eb4fb431164c26077c393 (plain)
1
2
3
4
5
6
7
8
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
}