]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/two-phase-across-loop.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / two-phase-across-loop.stderr
1 error[E0499]: cannot borrow `foo` as mutable more than once at a time
2   --> $DIR/two-phase-across-loop.rs:17:22
3    |
4 LL |         strings.push(foo.get_string());
5    |         -------------^^^^^^^^^^^^^^^^-
6    |         |            |
7    |         |            `foo` was mutably borrowed here in the previous iteration of the loop
8    |         first borrow used here, in later iteration of loop
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0499`.