]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/issue-83737-binders-across-types.rs
New upstream version 1.53.0+dfsg1
[rustc.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() {}