]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/borrowed-match-issue-45045.stderr
Fix invalid float literal suggestions when recovering an integer
[rust.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`.