Don't concatenate binders across types
This commit is contained in:
parent
4fdac23f31
commit
1a14315975
4 changed files with 215 additions and 86 deletions
14
src/test/ui/lifetimes/issue-83737-binders-across-types.rs
Normal file
14
src/test/ui/lifetimes/issue-83737-binders-across-types.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue