rust/tests/ui/lifetimes/issue-83737-erasing-bound-vars.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
251 B
Rust
Raw Permalink Normal View History

//@ 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() {}