rust/src/test/ui/borrowck/two-phase-across-loop.stderr

10 lines
398 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0499]: cannot borrow `foo` as mutable more than once at a time
2018-12-25 09:56:47 -06:00
--> $DIR/two-phase-across-loop.rs:19:22
2018-08-08 07:28:26 -05:00
|
LL | strings.push(foo.get_string()); //~ ERROR cannot borrow `foo` as mutable
| ^^^ mutable borrow starts here in previous iteration of loop
error: aborting due to previous error
For more information about this error, try `rustc --explain E0499`.