3 // compile-flags: --crate-type lib
5 #![feature(async_await)]
12 // You are allowed to move out part of a struct to an async fn, you still
13 // have access to remaining parts after awaiting
14 async fn move_part_await_return_rest_struct() -> Vec<usize> {
15 let s = Small { x: vec![31], y: vec![19, 1441] };
20 async fn needs_vec(_vec: Vec<usize>) {}