rust/tests/ui/generic-associated-types/issue-79636-2.rs

16 lines
242 B
Rust

trait SomeTrait {
type Wrapped<A>: SomeTrait;
fn f() -> ();
}
fn program<W>() -> ()
where
W: SomeTrait<Wrapped = W>,
//~^ ERROR: missing generics for associated type `SomeTrait::Wrapped`
{
return W::f();
}
fn main() {}