1 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
2 --> $DIR/mut-borrow-in-loop.rs:20:25
4 LL | (self.func)(arg) //~ ERROR cannot borrow
5 | ^^^ mutable borrow starts here in previous iteration of loop
7 note: borrowed value must be valid for the lifetime 'a as defined on the impl at 17:6...
8 --> $DIR/mut-borrow-in-loop.rs:17:6
10 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
13 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
14 --> $DIR/mut-borrow-in-loop.rs:26:25
16 LL | (self.func)(arg) //~ ERROR cannot borrow
17 | ^^^ mutable borrow starts here in previous iteration of loop
19 note: borrowed value must be valid for the lifetime 'a as defined on the impl at 17:6...
20 --> $DIR/mut-borrow-in-loop.rs:17:6
22 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
25 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
26 --> $DIR/mut-borrow-in-loop.rs:33:25
28 LL | (self.func)(arg) //~ ERROR cannot borrow
29 | ^^^ mutable borrow starts here in previous iteration of loop
31 note: borrowed value must be valid for the lifetime 'a as defined on the impl at 17:6...
32 --> $DIR/mut-borrow-in-loop.rs:17:6
34 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
37 error: aborting due to 3 previous errors
39 For more information about this error, try `rustc --explain E0499`.