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
447 B15 linesraw
1error[E0503]: cannot use `e` because it was mutably borrowed
2  --> $DIR/borrowed-match-issue-45045.rs:13:9
3   |
4LL |     let f = &mut e;
5   |             ------ borrow of `e` occurs here
6...
7LL |         Xyz::A => println!("a"),
8   |         ^^^^^^ use of borrowed `e`
9...
10LL |     *g = Xyz::B;
11   |     ----------- borrow later used here
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0503`.