]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/mut-borrow-in-loop.nll.stderr
Fix two UI tests with locale-dependent output
[rust.git] / src / test / ui / borrowck / mut-borrow-in-loop.nll.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    |
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
9    |
10 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
11    |      ^^
12
13 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
14   --> $DIR/mut-borrow-in-loop.rs:26:25
15    |
16 LL |             (self.func)(arg) //~ ERROR cannot borrow
17    |                         ^^^ mutable borrow starts here in previous iteration of loop
18    |
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
21    |
22 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
23    |      ^^
24
25 error[E0499]: cannot borrow `*arg` as mutable more than once at a time
26   --> $DIR/mut-borrow-in-loop.rs:33:25
27    |
28 LL |             (self.func)(arg) //~ ERROR cannot borrow
29    |                         ^^^ mutable borrow starts here in previous iteration of loop
30    |
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
33    |
34 LL | impl<'a, T : 'a> FuncWrapper<'a, T> {
35    |      ^^
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0499`.