fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
550 B13 linesraw
1error[E0382]: assign of moved value: `t`
2  --> $DIR/borrowck-partial-reinit-2.rs:15:5
3   |
4LL |     let mut t = Test { a: 1, b: None};
5   |         ----- move occurs because `t` has type `Test`, which does not implement the `Copy` trait
6LL |     let mut u = Test { a: 2, b: Some(Box::new(t))};
7   |                                               - value moved here
8LL |     t.b = Some(Box::new(u));
9   |     ^^^ value assigned here after move
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0382`.