Sign in
fuchsia
/
third_party
/
rust
/
8ae7c743bbc6e6281c5aa892daaaa5439aafc1db
/
.
/
tests
/
ui
/
async-await
/
issue-70818.rs
blob: 019c56eb2fa3efc2329396f1fc13f90e20722d25 [
file
] [
log
] [
blame
]
// 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
()
{}