]> git.proxmox.com Git - rustc.git/blame - tests/ui/associated-type-bounds/ambiguous-associated-type2.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / associated-type-bounds / ambiguous-associated-type2.stderr
CommitLineData
6a06907d 1error[E0391]: cycle detected when computing the super traits of `Baz` with associated type name `Item`
cdc7bbd5 2 --> $DIR/ambiguous-associated-type2.rs:7:1
6a06907d
XL
3 |
4LL | trait Baz: Foo + Bar<Self::Item> {}
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
94222f64 7 = note: ...which immediately requires computing the super traits of `Baz` with associated type name `Item` again
353b0b11 8note: cycle used when computing the super predicates of `Baz`
cdc7bbd5 9 --> $DIR/ambiguous-associated-type2.rs:7:1
6a06907d
XL
10 |
11LL | trait Baz: Foo + Bar<Self::Item> {}
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0391`.