// check-pass // edition:2018 use std::future::Future; async fn foo>(x: &i32, future: F) -> i32 { let y = future.await; *x + y } fn main() {}