2022-08-17 12:22:32 +02:00
|
|
|
error[E0277]: the trait bound `for<'z> T: Trait2<'y, 'z>` is not satisfied
|
2023-01-08 03:14:27 +00:00
|
|
|
--> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:49
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-18 14:57:56 -08:00
|
|
|
LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
2023-01-08 03:14:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'z> Trait2<'y, 'z>` is not implemented for `T`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-05-03 09:25:32 -04:00
|
|
|
help: consider restricting type parameter `T`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2021-05-03 09:25:32 -04:00
|
|
|
LL | fn callee<'x, 'y, T: for<'z> Trait2<'y, 'z>>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
|
|
|
| ++++++++++++++++++++++++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-01-08 02:40:59 +00:00
|
|
|
error: aborting due to previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2021-05-03 09:25:32 -04:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|