summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-83737-erasing-bound-vars.rs
blob: c496a3556c84e2b1647afd42d2b6250b6ceae2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// build-pass
// compile-flags: --edition 2018
// compile-flags: --crate-type rlib

use std::future::Future;

async fn handle<F>(slf: &F)
where
    F: Fn(&()) -> Box<dyn for<'a> Future<Output = ()> + Unpin>,
{
    (slf)(&()).await;
}

fn main() {}