Sign in
◑
Theme
rust
/
rust
/
d7e8f9fc7af4aa4cd65140afaebe48dd1e90e708
/
.
/
tests
/
ui
/
async-await
/
issue-70818.rs
blob: af9f33d9050b0181bbc940eb1209d57568bf9741 [
file
]
//@ edition:2018
use
std
::
future
::
Future
;
fn
foo
<
T
:
Send
,
U
>(
ty
:
T
,
ty1
:
U
)
->
impl
Future
<
Output
=
(
T
,
U
)>
+
Send
{
//~^ ERROR: future cannot be sent between threads safely
async
{
(
ty
,
ty1
)
}
}
fn
main
()
{}