2018-08-08 07:28:26 -05:00
|
|
|
error[E0491]: in type `&'x (dyn for<'z> Trait1<<T as Trait2<'y, 'z>>::Foo> + 'x)`, reference has a longer lifetime than the data it references
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | / fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | | {
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2019-10-10 18:58:35 -05:00
|
|
|
note: the pointer is valid for the lifetime `'x` as defined on the function body at 21:11
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
2019-10-10 18:58:35 -05:00
|
|
|
note: but the referenced data is only valid for the lifetime `'y` as defined on the function body at 21:15
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/regions-implied-bounds-projection-gap-hr-1.rs:21:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn callee<'x, 'y, T>(t: &'x dyn for<'z> Trait1< <T as Trait2<'y, 'z>>::Foo >)
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0491`.
|