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