]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/mut-borrow-in-loop.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / borrowck / mut-borrow-in-loop.stderr
1 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
2 --> $DIR/mut-borrow-in-loop.rs:20:25
3 |
4 LL | (self.func)(arg) //~ ERROR cannot borrow
5 | ^^^ mutable borrow starts here in previous iteration of loop
6 LL | }
7 LL | }
8 | - mutable borrow ends here
9
10 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
11 --> $DIR/mut-borrow-in-loop.rs:26:25
12 |
13 LL | (self.func)(arg) //~ ERROR cannot borrow
14 | ^^^ mutable borrow starts here in previous iteration of loop
15 LL | }
16 LL | }
17 | - mutable borrow ends here
18
19 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
20 --> $DIR/mut-borrow-in-loop.rs:33:25
21 |
22 LL | (self.func)(arg) //~ ERROR cannot borrow
23 | ^^^ mutable borrow starts here in previous iteration of loop
24 LL | }
25 LL | }
26 | - mutable borrow ends here
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0499`.