Sign in
fuchsia
/
third_party
/
rust
/
9f4351d406fe904a99a7588ebb1411e369ba71f7
/
.
/
src
/
test
/
ui
/
async-await
/
no-move-across-await-tuple.rs
blob: 565cbd7d5f4aeaeb5452e968168fbfed99e5d418 [
file
] [
log
] [
blame
]
// compile-fail
// edition:2018
// compile-flags: --crate-type lib
async
fn
no_move_across_await_tuple
()
->
Vec
<
usize
>
{
let
x
=
(
vec
![
3
],
vec
![
4
,
4
]);
drop
(
x
.
1
);
nothing
().
await
;
x
.
1
//~^ ERROR use of moved value: `x.1`
}
async
fn
nothing
()
{}