Closed
Description
This cannot find the poll
method on Pin
:
use std::ops::Deref;
pub struct Pin<P>(P);
impl<P, T> Deref for Pin<P> where
P: Deref<Target = T>,
{
type Target = T;
fn deref(&self) -> &T {
&*self.0
}
}
impl<'a, F> Pin<&'a mut F> {
fn poll(self) {}
}
fn test(pin: Pin<&mut ()>) {
pin.poll()
}
This clearly should compile.
This bug may be a blocker on changing the Pin API to a composeable form.