]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/self/arbitrary_self_types_pin_lifetime_mismatch.rs
6 fn a(self: Pin
<&Foo
>, f
: &Foo
) -> &Foo { f }
7 //~^ lifetime may not live long enough
9 fn c(self: Pin
<&Self>, f
: &Foo
, g
: &Foo
) -> (Pin
<&Foo
>, &Foo
) { (self, f) }
10 //~^ lifetime may not live long enough
13 type Alias
<T
> = Pin
<T
>;
15 fn bar
<'a
>(self: Alias
<&Self>, arg
: &'
a ()) -> &() { arg }
16 //~^ lifetime may not live long enough