blob: 14272fa3ed5d56839e83b97b84267f6dbde44388 [file] [log] [blame]
error[E0382]: assign of moved value: `t`
--> $DIR/borrowck-partial-reinit-2.rs:25:5
|
LL | let mut u = Test { a: 2, b: Some(Box::new(t))};
| - value moved here
LL | t.b = Some(Box::new(u));
| ^^^ value assigned here after move
|
= note: move occurs because `t` has type `Test`, which does not implement the `Copy` trait
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.