1 error[E0510]: cannot assign `q` in match guard
2 --> $DIR/match-guards-partially-borrow.rs:55:13
5 | - value is immutable in match guard
8 | ^^^^^^^^ cannot assign
10 error[E0510]: cannot assign `r` in match guard
11 --> $DIR/match-guards-partially-borrow.rs:67:13
14 | - value is immutable in match guard
17 | ^^^^^^^^ cannot assign
19 error[E0510]: cannot assign `t` in match guard
20 --> $DIR/match-guards-partially-borrow.rs:91:13
23 | - value is immutable in match guard
26 | ^^^^^^^^ cannot assign
28 error[E0510]: cannot mutably borrow `x.0` in match guard
29 --> $DIR/match-guards-partially-borrow.rs:105:22
32 | - value is immutable in match guard
34 LL | Some(ref mut r) => *r = None,
35 | ^^^^^^^^^ cannot mutably borrow
37 error[E0506]: cannot assign to `t` because it is borrowed
38 --> $DIR/match-guards-partially-borrow.rs:117:13
41 | - borrow of `t` occurs here
43 | ^^^^^^ assignment to borrowed `t` occurs here
45 LL | } => (), // What value should `s` have in the arm?
46 | - borrow later used here
48 error[E0510]: cannot assign `y` in match guard
49 --> $DIR/match-guards-partially-borrow.rs:128:13
52 | -- value is immutable in match guard
55 | ^^^^^^^^^ cannot assign
57 error[E0510]: cannot assign `z` in match guard
58 --> $DIR/match-guards-partially-borrow.rs:139:13
61 | - value is immutable in match guard
64 | ^^^^^^^^^ cannot assign
66 error[E0510]: cannot assign `a` in match guard
67 --> $DIR/match-guards-partially-borrow.rs:151:13
70 | - value is immutable in match guard
73 | ^^^^^^^^^ cannot assign
75 error[E0510]: cannot assign `b` in match guard
76 --> $DIR/match-guards-partially-borrow.rs:162:13
79 | - value is immutable in match guard
82 | ^^^^^^^^^ cannot assign
84 error: aborting due to 9 previous errors
86 Some errors have detailed explanations: E0506, E0510.
87 For more information about an error, try `rustc --explain E0506`.