|
1 | 1 | error: cannot borrow value as mutable more than once at a time |
2 | | - --> $DIR/conflicting_bindings.rs:5:9 |
| 2 | + --> $DIR/conflicting_bindings.rs:9:9 |
3 | 3 | | |
4 | 4 | LL | let ref mut y @ ref mut z = x; |
5 | 5 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
6 | 6 | | | |
7 | 7 | | value is mutably borrowed by `y` here |
8 | 8 |
|
9 | 9 | error: cannot borrow value as mutable more than once at a time |
10 | | - --> $DIR/conflicting_bindings.rs:7:14 |
| 10 | + --> $DIR/conflicting_bindings.rs:11:14 |
11 | 11 | | |
12 | 12 | LL | let Some(ref mut y @ ref mut z) = x else { return }; |
13 | 13 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
14 | 14 | | | |
15 | 15 | | value is mutably borrowed by `y` here |
16 | 16 |
|
17 | 17 | error: cannot borrow value as mutable more than once at a time |
18 | | - --> $DIR/conflicting_bindings.rs:9:17 |
| 18 | + --> $DIR/conflicting_bindings.rs:13:17 |
19 | 19 | | |
20 | 20 | LL | if let Some(ref mut y @ ref mut z) = x {} |
21 | 21 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
22 | 22 | | | |
23 | 23 | | value is mutably borrowed by `y` here |
24 | 24 |
|
25 | 25 | error: cannot borrow value as mutable more than once at a time |
26 | | - --> $DIR/conflicting_bindings.rs:11:17 |
| 26 | + --> $DIR/conflicting_bindings.rs:15:17 |
27 | 27 | | |
28 | 28 | LL | if let Some(ref mut y @ ref mut z) = x && true {} |
29 | 29 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
30 | 30 | | | |
31 | 31 | | value is mutably borrowed by `y` here |
32 | 32 |
|
33 | 33 | error: cannot borrow value as mutable more than once at a time |
34 | | - --> $DIR/conflicting_bindings.rs:13:43 |
| 34 | + --> $DIR/conflicting_bindings.rs:17:43 |
35 | 35 | | |
36 | 36 | LL | if let Some(_) = Some(()) && let Some(ref mut y @ ref mut z) = x && true {} |
37 | 37 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
38 | 38 | | | |
39 | 39 | | value is mutably borrowed by `y` here |
40 | 40 |
|
41 | 41 | error: cannot borrow value as mutable more than once at a time |
42 | | - --> $DIR/conflicting_bindings.rs:15:20 |
| 42 | + --> $DIR/conflicting_bindings.rs:19:20 |
43 | 43 | | |
44 | 44 | LL | while let Some(ref mut y @ ref mut z) = x {} |
45 | 45 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
46 | 46 | | | |
47 | 47 | | value is mutably borrowed by `y` here |
48 | 48 |
|
49 | 49 | error: cannot borrow value as mutable more than once at a time |
50 | | - --> $DIR/conflicting_bindings.rs:17:20 |
| 50 | + --> $DIR/conflicting_bindings.rs:21:20 |
51 | 51 | | |
52 | 52 | LL | while let Some(ref mut y @ ref mut z) = x && true {} |
53 | 53 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
54 | 54 | | | |
55 | 55 | | value is mutably borrowed by `y` here |
56 | 56 |
|
57 | 57 | error: cannot borrow value as mutable more than once at a time |
58 | | - --> $DIR/conflicting_bindings.rs:20:9 |
| 58 | + --> $DIR/conflicting_bindings.rs:24:9 |
59 | 59 | | |
60 | 60 | LL | ref mut y @ ref mut z => {} |
61 | 61 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
62 | 62 | | | |
63 | 63 | | value is mutably borrowed by `y` here |
64 | 64 |
|
65 | 65 | error: cannot borrow value as mutable more than once at a time |
66 | | - --> $DIR/conflicting_bindings.rs:23:24 |
| 66 | + --> $DIR/conflicting_bindings.rs:27:24 |
67 | 67 | | |
68 | 68 | LL | () if let Some(ref mut y @ ref mut z) = x => {} |
69 | 69 | | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
70 | 70 | | | |
71 | 71 | | value is mutably borrowed by `y` here |
72 | 72 |
|
73 | | -error: aborting due to 9 previous errors |
| 73 | +error: cannot borrow value as mutable more than once at a time |
| 74 | + --> $DIR/conflicting_bindings.rs:31:51 |
| 75 | + | |
| 76 | +LL | () if let Some(()) = Some(()) && let Some(ref mut y @ ref mut z) = x && true => {} |
| 77 | + | ^^^^^^^^^ --------- value is mutably borrowed by `z` here |
| 78 | + | | |
| 79 | + | value is mutably borrowed by `y` here |
| 80 | + |
| 81 | +error: aborting due to 10 previous errors |
74 | 82 |
|
0 commit comments