rust/src/test/ui/regions/region-object-lifetime-4.nll.stderr
Basile Desloges b01550a718 Update tests
2018-09-01 12:58:18 +02:00

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