diff options
Diffstat (limited to 'src/test/ui/async-await/no-move-across-await-struct.rs')
-rw-r--r-- | src/test/ui/async-await/no-move-across-await-struct.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/async-await/no-move-across-await-struct.rs b/src/test/ui/async-await/no-move-across-await-struct.rs deleted file mode 100644 index 51c9a42b3..000000000 --- a/src/test/ui/async-await/no-move-across-await-struct.rs +++ /dev/null @@ -1,16 +0,0 @@ -// edition:2018 -// compile-flags: --crate-type lib - -async fn no_move_across_await_struct() -> Vec<usize> { - 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<usize>, - y: Vec<usize>, -} - -async fn needs_vec(_vec: Vec<usize>) {} |