]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-type-bounds/ambiguous-associated-type2.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / associated-type-bounds / ambiguous-associated-type2.rs
1 trait Foo {
2 type Item;
3 }
4 trait Bar<T> {
5 type Item;
6 }
7 trait Baz: Foo + Bar<Self::Item> {}
8 //~^ ERROR cycle detected when computing the super traits of `Baz` with associated type name `Item` [E0391]
9
10 fn main() {}