Sign in
rust
/
rust-lang
/
rust
/
67d45f49e09cb8f355df2ffae22cfc3d7ee6c278
/
.
/
tests
/
ui
/
async-await
/
move-part-await-return-rest-tuple.rs
blob: c7c15e66fc04aa5508710cb029253deafbdf1208 [
file
] [
log
] [
blame
]
//@ build-pass
//@ edition:2018
//@ compile-flags: --crate-type lib
async
fn
move_part_await_return_rest_tuple
()
->
Vec
<
usize
>
{
let
x
=
(
vec
![
3
],
vec
![
4
,
4
]);
drop
(
x
.
1
);
echo
(
x
.
0
[
0
]).
await
;
x
.
0
}
async
fn
echo
(
x
:
usize
)
->
usize
{
x
}