]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / ui / regions / regions-implied-bounds-projection-gap-hr-1.stderr
1 error[E0277]: the trait bound `for<'z> T: Trait2<'y, 'z>` is not satisfied
2   --> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:49
3    |
4 LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
5    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `for<'z> Trait2<'y, 'z>` is not implemented for `T`
6    |
7 help: consider restricting type parameter `T`
8    |
9 LL | fn callee<'x, 'y, T: for<'z> Trait2<'y, 'z>>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
10    |                    ++++++++++++++++++++++++
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.