fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
437 B13 linesraw
1error[E0505]: cannot move out of `x` because it is borrowed
2  --> $DIR/borrowck-issue-2657-1.rs:9:18
3   |
4LL |       Some(ref _y) => {
5   |            ------ borrow of `x.0` occurs here
6LL |         let _a = x;
7   |                  ^ move out of `x` occurs here
8LL |         _y.use_ref();
9   |         -- borrow later used here
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0505`.