2017-07-26 20:43:11 -05:00
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
|
|
|
--> $DIR/mut-borrow-in-loop.rs:20:25
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
20 | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
|
|
|
21 | }
|
|
|
|
22 | }
|
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
|
|
|
--> $DIR/mut-borrow-in-loop.rs:26:25
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
26 | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
|
|
|
27 | }
|
|
|
|
28 | }
|
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
|
|
|
--> $DIR/mut-borrow-in-loop.rs:33:25
|
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
33 | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-26 20:43:11 -05:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
|
|
|
34 | }
|
|
|
|
35 | }
|
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0499"
|