1 error[E0510]: cannot assign `q` in match guard
2 --> $DIR/match-guards-partially-borrow.rs:100:13
5 | - value is immutable in match guard
8 | ^^^^^^^^ cannot assign
10 error[E0510]: cannot assign `q` in match guard
11 --> $DIR/match-guards-partially-borrow.rs:111:13
14 | - value is immutable in match guard
17 | ^^^^^^^^ cannot assign
19 error[E0510]: cannot assign `r` in match guard
20 --> $DIR/match-guards-partially-borrow.rs:123:13
23 | - value is immutable in match guard
26 | ^^^^^^^^ cannot assign
28 error[E0510]: cannot assign `r` in match guard
29 --> $DIR/match-guards-partially-borrow.rs:135:13
32 | - value is immutable in match guard
35 | ^^^^^^^^ cannot assign
37 error[E0510]: cannot assign `t` in match guard
38 --> $DIR/match-guards-partially-borrow.rs:172:13
41 | - value is immutable in match guard
44 | ^^^^^^^^ cannot assign
46 error[E0510]: cannot assign `t` in match guard
47 --> $DIR/match-guards-partially-borrow.rs:183:13
50 | - value is immutable in match guard
53 | ^^^^^^^^ cannot assign
55 error[E0510]: cannot mutably borrow `x.0` in match guard
56 --> $DIR/match-guards-partially-borrow.rs:197:22
59 | - value is immutable in match guard
61 LL | Some(ref mut r) => *r = None,
62 | ^^^^^^^^^ cannot mutably borrow
64 error[E0510]: cannot mutably borrow `x.0` in match guard
65 --> $DIR/match-guards-partially-borrow.rs:213:22
68 | - value is immutable in match guard
70 LL | Some(ref mut r) => *r = None,
71 | ^^^^^^^^^ cannot mutably borrow
73 error[E0506]: cannot assign to `t` because it is borrowed
74 --> $DIR/match-guards-partially-borrow.rs:225:13
77 | - `t` is borrowed here
79 | ^^^^^^ `t` is assigned to here but it was already borrowed
81 LL | } => (), // What value should `s` have in the arm?
82 | - borrow later used here
84 error[E0506]: cannot assign to `t` because it is borrowed
85 --> $DIR/match-guards-partially-borrow.rs:235:13
87 LL | s if let Some(()) = {
88 | - `t` is borrowed here
90 | ^^^^^^ `t` is assigned to here but it was already borrowed
92 LL | } => (), // What value should `s` have in the arm?
93 | - borrow later used here
95 error[E0510]: cannot assign `y` in match guard
96 --> $DIR/match-guards-partially-borrow.rs:246:13
99 | -- value is immutable in match guard
102 | ^^^^^^^^^ cannot assign
104 error[E0510]: cannot assign `y` in match guard
105 --> $DIR/match-guards-partially-borrow.rs:257:13
108 | -- value is immutable in match guard
111 | ^^^^^^^^^ cannot assign
113 error[E0510]: cannot assign `z` in match guard
114 --> $DIR/match-guards-partially-borrow.rs:268:13
117 | - value is immutable in match guard
120 | ^^^^^^^^^ cannot assign
122 error[E0510]: cannot assign `z` in match guard
123 --> $DIR/match-guards-partially-borrow.rs:279:13
126 | - value is immutable in match guard
129 | ^^^^^^^^^ cannot assign
131 error[E0510]: cannot assign `a` in match guard
132 --> $DIR/match-guards-partially-borrow.rs:291:13
135 | - value is immutable in match guard
138 | ^^^^^^^^^ cannot assign
140 error[E0510]: cannot assign `a` in match guard
141 --> $DIR/match-guards-partially-borrow.rs:303:13
144 | - value is immutable in match guard
147 | ^^^^^^^^^ cannot assign
149 error[E0510]: cannot assign `b` in match guard
150 --> $DIR/match-guards-partially-borrow.rs:314:13
153 | - value is immutable in match guard
156 | ^^^^^^^^^ cannot assign
158 error[E0510]: cannot assign `b` in match guard
159 --> $DIR/match-guards-partially-borrow.rs:325:13
162 | - value is immutable in match guard
165 | ^^^^^^^^^ cannot assign
167 error: aborting due to 18 previous errors
169 Some errors have detailed explanations: E0506, E0510.
170 For more information about an error, try `rustc --explain E0506`.