fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
415 B13 linesraw
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`.