//@ check-pass #![crate_type = "lib"] #![no_std] use core::future::Future; use core::pin::Pin; use core::task::{Context, Poll}; pub struct S; impl Future for S { type Output = (); fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll { todo!() } } pub fn f() -> S { S }