]> git.lizzy.rs Git - rust.git/blob - src/test/ui/diagnostic-width/flag-human.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / diagnostic-width / flag-human.rs
1 // compile-flags: --diagnostic-width=20
2
3 // This test checks that `-Z output-width` effects the human error output by restricting it to an
4 // arbitrarily low value so that the effect is visible.
5
6 fn main() {
7     let _: () = 42;
8     //~^ ERROR mismatched types
9 }