]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-55324.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[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() {}