//@ run-pass use std::ops::Deref; pub struct Pin
(P); impl
Deref for Pin
where
P: Deref Pin {
fn poll(self) {}
}
fn main() {
let mut unit = ();
let pin = Pin(&mut unit);
pin.poll();
}
// https://github.com/rust-lang/rust/issues/53843