11error[E0510]: cannot assign `q` in match guard
2- --> $DIR/match-guards-partially-borrow.rs:59 :13
2+ --> $DIR/match-guards-partially-borrow.rs:57 :13
33 |
44LL | match q {
55 | - value is immutable in match guard
@@ -8,7 +8,7 @@ LL | q = true;
88 | ^^^^^^^^ cannot assign
99
1010error[E0510]: cannot assign `r` in match guard
11- --> $DIR/match-guards-partially-borrow.rs:71 :13
11+ --> $DIR/match-guards-partially-borrow.rs:69 :13
1212 |
1313LL | match r {
1414 | - value is immutable in match guard
@@ -17,7 +17,7 @@ LL | r = true;
1717 | ^^^^^^^^ cannot assign
1818
1919error[E0510]: cannot assign `t` in match guard
20- --> $DIR/match-guards-partially-borrow.rs:95 :13
20+ --> $DIR/match-guards-partially-borrow.rs:93 :13
2121 |
2222LL | match t {
2323 | - value is immutable in match guard
@@ -26,7 +26,7 @@ LL | t = true;
2626 | ^^^^^^^^ cannot assign
2727
2828error[E0510]: cannot mutably borrow `x.0` in match guard
29- --> $DIR/match-guards-partially-borrow.rs:109 :22
29+ --> $DIR/match-guards-partially-borrow.rs:107 :22
3030 |
3131LL | match x {
3232 | - value is immutable in match guard
@@ -35,7 +35,7 @@ LL | Some(ref mut r) => *r = None,
3535 | ^^^^^^^^^ cannot mutably borrow
3636
3737error[E0506]: cannot assign to `t` because it is borrowed
38- --> $DIR/match-guards-partially-borrow.rs:121 :13
38+ --> $DIR/match-guards-partially-borrow.rs:119 :13
3939 |
4040LL | s if {
4141 | - borrow of `t` occurs here
@@ -46,7 +46,7 @@ LL | } => (), // What value should `s` have in the arm?
4646 | - borrow later used here
4747
4848error[E0510]: cannot assign `y` in match guard
49- --> $DIR/match-guards-partially-borrow.rs:132 :13
49+ --> $DIR/match-guards-partially-borrow.rs:130 :13
5050 |
5151LL | match *y {
5252 | -- value is immutable in match guard
@@ -55,7 +55,7 @@ LL | y = &true;
5555 | ^^^^^^^^^ cannot assign
5656
5757error[E0510]: cannot assign `z` in match guard
58- --> $DIR/match-guards-partially-borrow.rs:143 :13
58+ --> $DIR/match-guards-partially-borrow.rs:141 :13
5959 |
6060LL | match z {
6161 | - value is immutable in match guard
@@ -64,7 +64,7 @@ LL | z = &true;
6464 | ^^^^^^^^^ cannot assign
6565
6666error[E0510]: cannot assign `a` in match guard
67- --> $DIR/match-guards-partially-borrow.rs:155 :13
67+ --> $DIR/match-guards-partially-borrow.rs:153 :13
6868 |
6969LL | match a {
7070 | - value is immutable in match guard
@@ -73,7 +73,7 @@ LL | a = &true;
7373 | ^^^^^^^^^ cannot assign
7474
7575error[E0510]: cannot assign `b` in match guard
76- --> $DIR/match-guards-partially-borrow.rs:166 :13
76+ --> $DIR/match-guards-partially-borrow.rs:164 :13
7777 |
7878LL | match b {
7979 | - value is immutable in match guard
0 commit comments