Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
async-await
/
issue-70818.rs
blob: 36295a84e7ad703346862ea356fb3647ac4b9273 [
file
] [
log
] [
blame
] [
edit
]
//@ 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
()
{}