]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0503.nll.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0503.nll.stderr
1 error[E0503]: cannot use `value` because it was mutably borrowed
2   --> $DIR/E0503.rs:4:16
3    |
4 LL |     let _borrow = &mut value;
5    |                   ---------- borrow of `value` occurs here
6 LL |     let _sum = value + 1;
7    |                ^^^^^ use of borrowed `value`
8 LL |     _borrow.use_mut();
9    |     ------- borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0503`.