Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 214 Bytes
// build-pass (FIXME(62277): could be 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() {}
You can’t perform that action at this time.