]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-autoref-3261.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-autoref-3261.stderr
1 error[E0499]: cannot borrow `x` as mutable more than once at a time
2   --> $DIR/borrowck-autoref-3261.rs:15:9
3    |
4 LL |     (&mut x).with(
5    |     -------- ---- first borrow later used by call
6    |     |
7    |     first mutable borrow occurs here
8 LL |         |opt| {
9    |         ^^^^^ second mutable borrow occurs here
10 ...
11 LL |                     x = X(Either::Left((0, 0)));
12    |                     - second borrow occurs due to use of `x` in closure
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0499`.