]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/move-part-await-return-rest-tuple.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / move-part-await-return-rest-tuple.rs
1 // build-pass
2 // edition:2018
3 // compile-flags: --crate-type lib
4
5 async fn move_part_await_return_rest_tuple() -> Vec<usize> {
6     let x = (vec![3], vec![4, 4]);
7     drop(x.1);
8     echo(x.0[0]).await;
9     x.0
10 }
11
12 async fn echo(x: usize) -> usize { x }