]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/two-phase-across-loop.stderr
Auto merge of #101768 - sunfishcode:sunfishcode/wasi-stdio-lock-asfd, r=joshtriplett
[rust.git] / src / test / 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    |                      ^^^^^^^^^^^^^^^^ `foo` was mutably borrowed here in the previous iteration of the loop
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0499`.