blob: 972aed87d34aa7ff65f556c62faad45aca867aa9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ 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() {}
|