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>>() { }
|
|
|
|
| ^^^^
|
|
|
|
|
|
2021-07-20 20:06:39 -05:00
|
|
|
= note: ...which immediately requires computing the bounds for type parameter `T` again
|
2020-05-31 10:11:51 -05:00
|
|
|
note: cycle used when computing explicit predicates of `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>>() { }
|
|
|
|
| ^^^^
|
|
|
|
|
2019-04-05 06:22:13 -05:00
|
|
|
error: aborting due to previous error
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2019-04-05 06:22:13 -05:00
|
|
|
For more information about this error, try `rustc --explain E0391`.
|