1 warning: denote infinite loops with `loop { ... }`
2 --> $DIR/mut-borrow-in-loop.rs:15:9
5 | ^^^^^^^^^^ help: use `loop`
7 = note: `#[warn(while_true)]` on by default
9 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
10 --> $DIR/mut-borrow-in-loop.rs:10:25
12 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
13 | -- lifetime `'a` defined here
18 | | `*arg` was mutably borrowed here in the previous iteration of the loop
19 | argument requires that `*arg` is borrowed for `'a`
21 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
22 --> $DIR/mut-borrow-in-loop.rs:16:25
24 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
25 | -- lifetime `'a` defined here
30 | | `*arg` was mutably borrowed here in the previous iteration of the loop
31 | argument requires that `*arg` is borrowed for `'a`
33 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
34 --> $DIR/mut-borrow-in-loop.rs:23:25
36 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
37 | -- lifetime `'a` defined here
42 | | `*arg` was mutably borrowed here in the previous iteration of the loop
43 | argument requires that `*arg` is borrowed for `'a`
45 error: aborting due to 3 previous errors; 1 warning emitted
47 For more information about this error, try `rustc --explain E0499`.