1 2 3 4 5 6 7
trait Foo { type T; fn foo() -> Foo<main>; // { dg-error "generic arguments are not allowed for this type .E0109." "" { target *-*-* } .-1 } } fn main() {}