Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lifetimes
/
issue-83737-erasing-bound-vars.rs
blob: 466bcdc6be0fc229c8713cd0e0f0dfd4ffc6bd88 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}