rust/tests/ui/regions/regions-implied-bounds-projection-gap-hr-1.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
688 B
Plaintext
Raw Normal View History

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
2018-08-08 07:28:26 -05:00
|
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`
2018-08-08 07:28:26 -05:00
|
help: consider restricting type parameter `T`
2018-08-08 07:28:26 -05: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 07:28:26 -05:00
2023-06-27 16:13:50 -05:00
error: aborting due to previous error
2018-08-08 07:28:26 -05:00
For more information about this error, try `rustc --explain E0277`.