Don't concatenate binders across types

This commit is contained in:
Jack Huey 2021-04-05 00:10:09 -04:00
parent 4fdac23f31
commit 1a14315975
4 changed files with 215 additions and 86 deletions

View file

@ -0,0 +1,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 Future<Output = ()> + Unpin>,
{
(slf)(&()).await;
}
fn main() {}