]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrowed-match-issue-45045.stderr
fix merge conflicts
[rust.git] / src / test / 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:15:9
3    |
4 LL |     let f = &mut e;
5    |             ------ borrow of `e` occurs here
6 ...
7 LL |         Xyz::A => println!("a"),
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`.