Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
async-await
/
issue-70818.rs
blob: 0609e4fc0817073f0782d9d0ed5b748f51561c54 [
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
()
{}