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