Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
refs/tags/1.58.1
/
.
/
src
/
test
/
ui
/
lifetimes
/
issue-83737-binders-across-types.rs
blob: e130561e466731325d0451a40b60479f36647b07 [
file
] [
log
] [
blame
]
// 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
()
{}