//@ build-pass //@ compile-flags: --edition 2018 //@ compile-flags: --crate-type rlib use std::future::Future; async fn handle(slf: &F) where F: Fn(&()) -> Box Future + Unpin>, { (slf)(&()).await; } fn main() {}