1 // Various tests related to testing how region inference works
2 // with respect to the object receivers.
4 // build-pass (FIXME(62277): could be check-pass?)
8 fn borrowed
<'a
>(&'a
self) -> &'
a ();
11 // Borrowed receiver with two distinct lifetimes, but we know that
12 // 'b:'a, hence &'a () is permitted.
13 fn borrowed_receiver_related_lifetimes
<'a
,'b
>(x
: &'
a (Foo
+'b
)) -> &'
a () {