2017-07-26 20:43:11 -05:00
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/mut-borrow-in-loop.rs:10:25
|
2017-07-26 20:43:11 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | }
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2017-07-26 20:43:11 -05:00
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/mut-borrow-in-loop.rs:16:25
|
2017-07-26 20:43:11 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | }
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2017-07-26 20:43:11 -05:00
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/mut-borrow-in-loop.rs:23:25
|
2017-07-26 20:43:11 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | }
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | }
|
2017-07-26 20:43:11 -05:00
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0499`.
|