rust/tests/ui/associated-type-bounds/ambiguous-associated-type2.rs

13 lines
221 B
Rust

trait Foo {
type Item;
}
trait Bar<T> {
type Item;
}
trait Baz: Foo + Bar<Self::Item> {}
//~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391]
fn main() {}