// edition:2018 // compile-flags: --crate-type lib async fn no_move_across_await_struct() -> Vec { let s = Small { x: vec![31], y: vec![19, 1441] }; needs_vec(s.x).await; s.x //~^ ERROR use of moved value: `s.x` } struct Small { x: Vec, y: Vec, } async fn needs_vec(_vec: Vec) {}