8 struct Sleep(std::marker::PhantomPinned);
10 impl Future for Sleep {
13 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
23 Sleep(std::marker::PhantomPinned)
39 impl Future for MyFuture {
42 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
43 Pin::new(&mut self.sleep).poll(cx)
44 //~^ ERROR `PhantomPinned` cannot be unpinned