]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-83737-binders-across-types.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / issue-83737-binders-across-types.rs
1 // build-pass
2 // compile-flags: --edition 2018
3 // compile-flags: --crate-type rlib
4
5 use std::future::Future;
6
7 async fn handle<F>(slf: &F)
8 where
9     F: Fn(&()) -> Box<dyn Future<Output = ()> + Unpin>,
10 {
11     (slf)(&()).await;
12 }
13
14 fn main() {}