1
1
error[E0510]: cannot assign `q` in match guard
2
- --> $DIR/match-guards-partially-borrow.rs:99 :13
2
+ --> $DIR/match-guards-partially-borrow.rs:98 :13
3
3
|
4
4
LL | match q {
5
5
| - value is immutable in match guard
@@ -8,7 +8,7 @@ LL | q = true;
8
8
| ^^^^^^^^ cannot assign
9
9
10
10
error[E0510]: cannot assign `q` in match guard
11
- --> $DIR/match-guards-partially-borrow.rs:110 :13
11
+ --> $DIR/match-guards-partially-borrow.rs:109 :13
12
12
|
13
13
LL | match q {
14
14
| - value is immutable in match guard
@@ -17,7 +17,7 @@ LL | q = true;
17
17
| ^^^^^^^^ cannot assign
18
18
19
19
error[E0510]: cannot assign `r` in match guard
20
- --> $DIR/match-guards-partially-borrow.rs:122 :13
20
+ --> $DIR/match-guards-partially-borrow.rs:121 :13
21
21
|
22
22
LL | match r {
23
23
| - value is immutable in match guard
@@ -26,7 +26,7 @@ LL | r = true;
26
26
| ^^^^^^^^ cannot assign
27
27
28
28
error[E0510]: cannot assign `r` in match guard
29
- --> $DIR/match-guards-partially-borrow.rs:134 :13
29
+ --> $DIR/match-guards-partially-borrow.rs:133 :13
30
30
|
31
31
LL | match r {
32
32
| - value is immutable in match guard
@@ -35,7 +35,7 @@ LL | r = true;
35
35
| ^^^^^^^^ cannot assign
36
36
37
37
error[E0510]: cannot assign `t` in match guard
38
- --> $DIR/match-guards-partially-borrow.rs:171 :13
38
+ --> $DIR/match-guards-partially-borrow.rs:170 :13
39
39
|
40
40
LL | match t {
41
41
| - value is immutable in match guard
@@ -44,7 +44,7 @@ LL | t = true;
44
44
| ^^^^^^^^ cannot assign
45
45
46
46
error[E0510]: cannot assign `t` in match guard
47
- --> $DIR/match-guards-partially-borrow.rs:182 :13
47
+ --> $DIR/match-guards-partially-borrow.rs:181 :13
48
48
|
49
49
LL | match t {
50
50
| - value is immutable in match guard
@@ -53,7 +53,7 @@ LL | t = true;
53
53
| ^^^^^^^^ cannot assign
54
54
55
55
error[E0510]: cannot mutably borrow `x.0` in match guard
56
- --> $DIR/match-guards-partially-borrow.rs:196 :22
56
+ --> $DIR/match-guards-partially-borrow.rs:195 :22
57
57
|
58
58
LL | match x {
59
59
| - value is immutable in match guard
@@ -62,7 +62,7 @@ LL | Some(ref mut r) => *r = None,
62
62
| ^^^^^^^^^ cannot mutably borrow
63
63
64
64
error[E0510]: cannot mutably borrow `x.0` in match guard
65
- --> $DIR/match-guards-partially-borrow.rs:212 :22
65
+ --> $DIR/match-guards-partially-borrow.rs:211 :22
66
66
|
67
67
LL | match x {
68
68
| - value is immutable in match guard
@@ -71,7 +71,7 @@ LL | Some(ref mut r) => *r = None,
71
71
| ^^^^^^^^^ cannot mutably borrow
72
72
73
73
error[E0506]: cannot assign to `t` because it is borrowed
74
- --> $DIR/match-guards-partially-borrow.rs:224 :13
74
+ --> $DIR/match-guards-partially-borrow.rs:223 :13
75
75
|
76
76
LL | s if {
77
77
| - `t` is borrowed here
@@ -82,7 +82,7 @@ LL | } => (), // What value should `s` have in the arm?
82
82
| - borrow later used here
83
83
84
84
error[E0506]: cannot assign to `t` because it is borrowed
85
- --> $DIR/match-guards-partially-borrow.rs:234 :13
85
+ --> $DIR/match-guards-partially-borrow.rs:233 :13
86
86
|
87
87
LL | s if let Some(()) = {
88
88
| - `t` is borrowed here
@@ -93,7 +93,7 @@ LL | } => (), // What value should `s` have in the arm?
93
93
| - borrow later used here
94
94
95
95
error[E0510]: cannot assign `y` in match guard
96
- --> $DIR/match-guards-partially-borrow.rs:245 :13
96
+ --> $DIR/match-guards-partially-borrow.rs:244 :13
97
97
|
98
98
LL | match *y {
99
99
| -- value is immutable in match guard
@@ -102,7 +102,7 @@ LL | y = &true;
102
102
| ^^^^^^^^^ cannot assign
103
103
104
104
error[E0510]: cannot assign `y` in match guard
105
- --> $DIR/match-guards-partially-borrow.rs:256 :13
105
+ --> $DIR/match-guards-partially-borrow.rs:255 :13
106
106
|
107
107
LL | match *y {
108
108
| -- value is immutable in match guard
@@ -111,7 +111,7 @@ LL | y = &true;
111
111
| ^^^^^^^^^ cannot assign
112
112
113
113
error[E0510]: cannot assign `z` in match guard
114
- --> $DIR/match-guards-partially-borrow.rs:267 :13
114
+ --> $DIR/match-guards-partially-borrow.rs:266 :13
115
115
|
116
116
LL | match z {
117
117
| - value is immutable in match guard
@@ -120,7 +120,7 @@ LL | z = &true;
120
120
| ^^^^^^^^^ cannot assign
121
121
122
122
error[E0510]: cannot assign `z` in match guard
123
- --> $DIR/match-guards-partially-borrow.rs:278 :13
123
+ --> $DIR/match-guards-partially-borrow.rs:277 :13
124
124
|
125
125
LL | match z {
126
126
| - value is immutable in match guard
@@ -129,7 +129,7 @@ LL | z = &true;
129
129
| ^^^^^^^^^ cannot assign
130
130
131
131
error[E0510]: cannot assign `a` in match guard
132
- --> $DIR/match-guards-partially-borrow.rs:290 :13
132
+ --> $DIR/match-guards-partially-borrow.rs:289 :13
133
133
|
134
134
LL | match a {
135
135
| - value is immutable in match guard
@@ -138,7 +138,7 @@ LL | a = &true;
138
138
| ^^^^^^^^^ cannot assign
139
139
140
140
error[E0510]: cannot assign `a` in match guard
141
- --> $DIR/match-guards-partially-borrow.rs:302 :13
141
+ --> $DIR/match-guards-partially-borrow.rs:301 :13
142
142
|
143
143
LL | match a {
144
144
| - value is immutable in match guard
@@ -147,7 +147,7 @@ LL | a = &true;
147
147
| ^^^^^^^^^ cannot assign
148
148
149
149
error[E0510]: cannot assign `b` in match guard
150
- --> $DIR/match-guards-partially-borrow.rs:313 :13
150
+ --> $DIR/match-guards-partially-borrow.rs:312 :13
151
151
|
152
152
LL | match b {
153
153
| - value is immutable in match guard
@@ -156,7 +156,7 @@ LL | b = &true;
156
156
| ^^^^^^^^^ cannot assign
157
157
158
158
error[E0510]: cannot assign `b` in match guard
159
- --> $DIR/match-guards-partially-borrow.rs:324 :13
159
+ --> $DIR/match-guards-partially-borrow.rs:323 :13
160
160
|
161
161
LL | match b {
162
162
| - value is immutable in match guard
0 commit comments