-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
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.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.