rust/tests/ui/associated-types/impl-wf-cycle-3.rs

14 lines
172 B
Rust

trait A<T> {}
trait B {
type Type;
}
impl<T> B for T //~ ERROR overflow evaluating the requirement
where
T: A<Self::Type>,
{
type Type = bool;
}
fn main() {}