1
1
error[E0510]: cannot assign `q` in match guard
2
- --> $DIR/match-guards-partially-borrow.rs:57 :13
2
+ --> $DIR/match-guards-partially-borrow.rs:55 :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 `r` in match guard
11
- --> $DIR/match-guards-partially-borrow.rs:69 :13
11
+ --> $DIR/match-guards-partially-borrow.rs:67 :13
12
12
|
13
13
LL | match r {
14
14
| - value is immutable in match guard
@@ -17,7 +17,7 @@ LL | r = true;
17
17
| ^^^^^^^^ cannot assign
18
18
19
19
error[E0510]: cannot assign `t` in match guard
20
- --> $DIR/match-guards-partially-borrow.rs:93 :13
20
+ --> $DIR/match-guards-partially-borrow.rs:91 :13
21
21
|
22
22
LL | match t {
23
23
| - value is immutable in match guard
@@ -26,7 +26,7 @@ LL | t = true;
26
26
| ^^^^^^^^ cannot assign
27
27
28
28
error[E0510]: cannot mutably borrow `x.0` in match guard
29
- --> $DIR/match-guards-partially-borrow.rs:107 :22
29
+ --> $DIR/match-guards-partially-borrow.rs:105 :22
30
30
|
31
31
LL | match x {
32
32
| - value is immutable in match guard
@@ -35,7 +35,7 @@ LL | Some(ref mut r) => *r = None,
35
35
| ^^^^^^^^^ cannot mutably borrow
36
36
37
37
error[E0506]: cannot assign to `t` because it is borrowed
38
- --> $DIR/match-guards-partially-borrow.rs:119 :13
38
+ --> $DIR/match-guards-partially-borrow.rs:117 :13
39
39
|
40
40
LL | s if {
41
41
| - borrow of `t` occurs here
@@ -46,7 +46,7 @@ LL | } => (), // What value should `s` have in the arm?
46
46
| - borrow later used here
47
47
48
48
error[E0510]: cannot assign `y` in match guard
49
- --> $DIR/match-guards-partially-borrow.rs:130 :13
49
+ --> $DIR/match-guards-partially-borrow.rs:128 :13
50
50
|
51
51
LL | match *y {
52
52
| -- value is immutable in match guard
@@ -55,7 +55,7 @@ LL | y = &true;
55
55
| ^^^^^^^^^ cannot assign
56
56
57
57
error[E0510]: cannot assign `z` in match guard
58
- --> $DIR/match-guards-partially-borrow.rs:141 :13
58
+ --> $DIR/match-guards-partially-borrow.rs:139 :13
59
59
|
60
60
LL | match z {
61
61
| - value is immutable in match guard
@@ -64,7 +64,7 @@ LL | z = &true;
64
64
| ^^^^^^^^^ cannot assign
65
65
66
66
error[E0510]: cannot assign `a` in match guard
67
- --> $DIR/match-guards-partially-borrow.rs:153 :13
67
+ --> $DIR/match-guards-partially-borrow.rs:151 :13
68
68
|
69
69
LL | match a {
70
70
| - value is immutable in match guard
@@ -73,7 +73,7 @@ LL | a = &true;
73
73
| ^^^^^^^^^ cannot assign
74
74
75
75
error[E0510]: cannot assign `b` in match guard
76
- --> $DIR/match-guards-partially-borrow.rs:164 :13
76
+ --> $DIR/match-guards-partially-borrow.rs:162 :13
77
77
|
78
78
LL | match b {
79
79
| - value is immutable in match guard
0 commit comments