]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-partial-reinit-2.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / borrowck-partial-reinit-2.nll.stderr
1 error[E0382]: assign of moved value: `t`
2   --> $DIR/borrowck-partial-reinit-2.rs:25:5
3    |
4 LL |     let mut u = Test { a: 2, b: Some(Box::new(t))};
5    |                                               - value moved here
6 LL |     t.b = Some(Box::new(u));
7    |     ^^^ value assigned here after move
8    |
9    = note: move occurs because `t` has type `Test`, 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`.