Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
async-await
/
type-parameter-send.rs
blob: 8ca0555e09637cf1274b4b3a54eac2b11d4a3d0d [
file
] [
log
] [
blame
]
//@ check-pass
//@ compile-flags: --crate-type lib
//@ edition:2018
fn
assert_send
<
F
:
Send
>(
_
:
F
)
{}
async
fn
__post
<
T
>()
->
T
{
if
false
{
todo
!()
}
else
{
async
{}.
await
;
todo
!()
}
}
fn
foo
<
T
>()
{
assert_send
(
__post
::<
T
>());
}