2017-07-27 02:43:11 +01:00
|
|
|
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
|
|
|
--> $DIR/mut-borrow-in-loop.rs:20:25
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-27 02:43:11 +01:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | }
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2017-07-27 02:43:11 +01:00
|
|
|
| - 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
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-27 02:43:11 +01:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | }
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2017-07-27 02:43:11 +01:00
|
|
|
| - 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
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | (self.func)(arg) //~ ERROR cannot borrow
|
2017-07-27 02:43:11 +01:00
|
|
|
| ^^^ mutable borrow starts here in previous iteration of loop
|
2018-02-25 02:01:39 +03:00
|
|
|
LL | }
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | }
|
2017-07-27 02:43:11 +01:00
|
|
|
| - mutable borrow ends here
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0499"
|