fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0505]: cannot move out of `a.x` because it is borrowed 2 --> $DIR/borrowck-move-subcomponent.rs:15:14 3 | 4LL | let a : S = S { x : Box::new(1) }; 5 | - binding `a` declared here 6LL | let pb = &a; 7 | -- borrow of `a` occurs here 8LL | let S { x: ax } = a; 9 | ^^ move out of `a.x` occurs here 10LL | f(pb); 11 | -- borrow later used here 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0505`.