fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
437 B15 linesraw
1error[E0503]: cannot use `e` because it was mutably borrowed
2  --> $DIR/borrowed-match-issue-45045.rs:12:11
3   |
4LL |     let f = &mut e;
5   |             ------ `e` is borrowed here
6LL |     let g = f;
7LL |     match e {
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`.