1 // Various tests related to testing how region inference works
2 // with respect to the object receivers.
5 fn borrowed
<'a
>(&'a
self) -> &'
a ();
8 // Borrowed receiver but two distinct lifetimes, we get an error.
9 fn borrowed_receiver_different_lifetimes
<'a
,'b
>(x
: &'a
dyn Foo
) -> &'
b () {
11 //~^ ERROR lifetime may not live long enough