fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1warning: denote infinite loops with `loop { ... }` 2 --> $DIR/mut-borrow-in-loop.rs:15:9 3 | 4LL | while true { 5 | ^^^^^^^^^^ help: use `loop` 6 | 7 = note: `#[warn(while_true)]` on by default 8 9error[E0499]: cannot borrow `*arg` as mutable more than once at a time 10 --> $DIR/mut-borrow-in-loop.rs:10:25 11 | 12LL | impl<'a, T : 'a> FuncWrapper<'a, T> { 13 | -- lifetime `'a` defined here 14... 15LL | (self.func)(arg) 16 | ------------^^^- 17 | | | 18 | | mutable borrow starts here in previous iteration of loop 19 | argument requires that `*arg` is borrowed for `'a` 20 21error[E0499]: cannot borrow `*arg` as mutable more than once at a time 22 --> $DIR/mut-borrow-in-loop.rs:16:25 23 | 24LL | impl<'a, T : 'a> FuncWrapper<'a, T> { 25 | -- lifetime `'a` defined here 26... 27LL | (self.func)(arg) 28 | ------------^^^- 29 | | | 30 | | mutable borrow starts here in previous iteration of loop 31 | argument requires that `*arg` is borrowed for `'a` 32 33error[E0499]: cannot borrow `*arg` as mutable more than once at a time 34 --> $DIR/mut-borrow-in-loop.rs:23:25 35 | 36LL | impl<'a, T : 'a> FuncWrapper<'a, T> { 37 | -- lifetime `'a` defined here 38... 39LL | (self.func)(arg) 40 | ------------^^^- 41 | | | 42 | | mutable borrow starts here in previous iteration of loop 43 | argument requires that `*arg` is borrowed for `'a` 44 45error: aborting due to 3 previous errors 46 47For more information about this error, try `rustc --explain E0499`.