// { dg-additional-options "-frust-name-resolution-2.0" } struct Foo(A, B); // { dg-error "type parameters with a default cannot use forward declared identifiers" "" { target *-*-* } .-1 } fn main() { let a: Foo; a = Foo::(true, (false, true)); let b: (bool, bool); b = a.1; }