3 #![feature(async_await)]
10 async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
11 //~^ ERROR missing lifetime specifier
12 //~| ERROR cannot infer an appropriate lifetime
13 // FIXME: should be E0623?
15 async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) }
16 //~^ ERROR missing lifetime specifier
17 //~| ERROR cannot infer an appropriate lifetime
18 //~| ERROR missing lifetime specifier
19 //~| ERROR cannot infer an appropriate lifetime
20 // FIXME: should be E0623?
23 type Alias<T> = Pin<T>;
25 async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg } //~ ERROR E0623