about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/long-E0609.rs
blob: a26d16ad12e78c54bf6064626c54693b8a7c0b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ compile-flags: --diagnostic-width=60 -Zwrite-long-types-to-disk=yes

type A = (i32, i32, i32, i32);
type B = (A, A, A, A);
type C = (B, B, B, B);
type D = (C, C, C, C);

fn foo(x: D) {
    x.field; //~ ERROR no field `field` on type `(...
}

fn main() {}