]>
Commit | Line | Data |
---|---|---|
6a06907d XL |
1 | error[E0391]: cycle detected when computing the super traits of `Baz` with associated type name `Item` |
2 | --> $DIR/ambiguous-associated-type2.rs:9:1 | |
3 | | | |
4 | LL | trait Baz: Foo + Bar<Self::Item> {} | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: ...which again requires computing the super traits of `Baz` with associated type name `Item`, completing the cycle | |
8 | note: cycle used when computing the super traits of `Baz` | |
9 | --> $DIR/ambiguous-associated-type2.rs:9:1 | |
10 | | | |
11 | LL | trait Baz: Foo + Bar<Self::Item> {} | |
12 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
13 | ||
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0391`. |