fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0382]: assign of moved value: `t` 2 --> $DIR/borrowck-partial-reinit-1.rs:27:5 3 | 4LL | let mut t = Test2 { b: None }; 5 | ----- move occurs because `t` has type `Test2`, which does not implement the `Copy` trait 6LL | let u = Test; 7LL | drop(t); 8 | - value moved here 9LL | t.b = Some(u); 10 | ^^^ value assigned here after move 11 12error[E0382]: assign of moved value: `t` 13 --> $DIR/borrowck-partial-reinit-1.rs:33:5 14 | 15LL | let mut t = Test3(None); 16 | ----- move occurs because `t` has type `Test3`, which does not implement the `Copy` trait 17LL | let u = Test; 18LL | drop(t); 19 | - value moved here 20LL | t.0 = Some(u); 21 | ^^^ value assigned here after move 22 23error: aborting due to 2 previous errors 24 25For more information about this error, try `rustc --explain E0382`.