13 lines
520 B
Plaintext
13 lines
520 B
Plaintext
error: unsatisfied lifetime constraints
|
|
--> $DIR/region-object-lifetime-4.rs:22:5
|
|
|
|
|
LL | fn borrowed_receiver_related_lifetimes2<'a,'b>(x: &'a (Foo+'b)) -> &'b () {
|
|
| -- -- lifetime `'b` defined here
|
|
| |
|
|
| lifetime `'a` defined here
|
|
LL | x.borrowed() //~ ERROR cannot infer
|
|
| ^^^^^^^^^^^^ argument requires that `'a` must outlive `'b`
|
|
|
|
error: aborting due to previous error
|
|
|