mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
690 B
Plaintext
15 lines
690 B
Plaintext
error[E0277]: the trait bound `for<'z> T: Trait2<'y, 'z>` is not satisfied
|
|
--> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:49
|
|
|
|
|
LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'z> Trait2<'y, 'z>` is not implemented for `T`
|
|
|
|
|
help: consider restricting type parameter `T`
|
|
|
|
|
LL | fn callee<'x, 'y, T: for<'z> Trait2<'y, 'z>>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
|
| ++++++++++++++++++++++++
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|