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