blob: c7f7447b0ea9a93af71bd97393a45c0f10373be0 [file] [log] [blame] [edit]
//@ check-pass
//@ edition:2018
use std::future::Future;
async fn foo<F: Future<Output = i32>>(x: &i32, future: F) -> i32 {
let y = future.await;
*x + y
}
fn main() {}