2018-07-15 16:11:54 -05:00
|
|
|
error[E0391]: cycle detected when computing the bounds for type parameter `T`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-21177.rs:6:21
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T: Trait<A = T::B>>() { }
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: ...which again requires computing the bounds for type parameter `T`, completing the cycle
|
|
|
|
note: cycle used when processing `foo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-21177.rs:6:21
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T: Trait<A = T::B>>() { }
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error[E0220]: associated type `B` not found for `T`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-21177.rs:6:21
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<T: Trait<A = T::B>>() { }
|
|
|
|
| ^^^^ associated type `B` not found
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0220, E0391.
|
|
|
|
For more information about an error, try `rustc --explain E0220`.
|