Sign in
fuchsia
/
third_party
/
rust
/
9f4351d406fe904a99a7588ebb1411e369ba71f7
/
.
/
src
/
test
/
ui
/
async-await
/
move-part-await-return-rest-tuple.rs
blob: 7b958b98b414f4d2f6b552619c1545fdcc7cf76c [
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
}