rust/tests/ui/generic-associated-types/issue-102335-gat.rs

14 lines
228 B
Rust

trait T {
type A: S<C<(), i32 = ()> = ()>;
//~^ ERROR associated type bindings are not allowed here
//~| ERROR associated type bindings are not allowed here
}
trait Q {}
trait S {
type C<T>: Q;
}
fn main() {}