]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-move-across-await-struct.stderr
Auto merge of #103217 - mejrs:track, r=eholk
[rust.git] / src / test / ui / async-await / no-move-across-await-struct.stderr
1 error[E0382]: use of moved value: `s.x`
2   --> $DIR/no-move-across-await-struct.rs:7:5
3    |
4 LL |     needs_vec(s.x).await;
5    |               --- value moved here
6 LL |     s.x
7    |     ^^^ value used here after move
8    |
9    = note: move occurs because `s.x` has type `Vec<usize>`, which does not implement the `Copy` trait
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.