]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-union-move-assign.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / borrowck / borrowck-union-move-assign.stderr
1 error[E0382]: use of moved value: `u`
2   --> $DIR/borrowck-union-move-assign.rs:17:21
3    |
4 LL |             let mut u = U { a: ManuallyDrop::new(A) };
5    |                 ----- move occurs because `u` has type `U`, which does not implement the `Copy` trait
6 LL |             let a = u.a;
7    |                     --- value moved here
8 LL |             let a = u.a;
9    |                     ^^^ value used here after move
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.