5 use std::task::{Context, Poll};
10 async fn pin_ref(self: Pin<&Self>) -> Pin<&Self> { self }
12 async fn pin_mut(self: Pin<&mut Self>) -> Pin<&mut Self> { self }
14 async fn pin_pin_pin_ref(self: Pin<Pin<Pin<&Self>>>) -> Pin<Pin<Pin<&Self>>> { self }
16 async fn pin_ref_impl_trait(self: Pin<&Self>) -> impl Clone + '_ { self }
18 fn b(self: Pin<&Foo>, f: &Foo) -> Pin<&Foo> { self }
21 type Alias<T> = Pin<T>;
23 async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> Alias<&Self> { self }
26 // FIXME(Centril): extend with the rest of the non-`async fn` test
27 // when we allow `async fn`s inside traits and trait implementations.
31 { Pin::new(&foo).pin_ref() };
32 { Pin::new(&mut foo).pin_mut() };
33 { Pin::new(Pin::new(Pin::new(&foo))).pin_pin_pin_ref() };
34 { Pin::new(&foo).pin_ref_impl_trait() };