]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-55324.rs
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / test / ui / async-await / issues / issue-55324.rs
1 // check-pass
2 // edition:2018
3
4 use std::future::Future;
5
6 async fn foo<F: Future<Output = i32>>(x: &i32, future: F) -> i32 {
7     let y = future.await;
8     *x + y
9 }
10
11 fn main() {}