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
451 B13 linesraw
1error[E0503]: cannot use `value` because it was mutably borrowed
2  --> $DIR/E0503.rs:4:16
3   |
4LL |     let _borrow = &mut value;
5   |                   ---------- borrow of `value` occurs here
6LL |     let _sum = value + 1;
7   |                ^^^^^ use of borrowed `value`
8LL |     _borrow.use_mut();
9   |     ------- borrow later used here
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0503`.