]> git.proxmox.com Git - rustc.git/blob - tests/ui/nll/borrowed-match-issue-45045.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / nll / borrowed-match-issue-45045.stderr
1 error[E0503]: cannot use `e` because it was mutably borrowed
2 --> $DIR/borrowed-match-issue-45045.rs:12:11
3 |
4 LL | let f = &mut e;
5 | ------ borrow of `e` occurs here
6 LL | let g = f;
7 LL | match e {
8 | ^ use of borrowed `e`
9 ...
10 LL | *g = Xyz::B;
11 | ----------- borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0503`.