@@ -9,7 +9,7 @@ help: consider changing this to be mutable
9
9
LL | let mut z = Z { x: X::Y };
10
10
| +++
11
11
12
- error[E0596]: cannot borrow ` self.x` as mutable, as it is behind a `&` reference
12
+ error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
13
13
--> $DIR/issue-39544.rs:16:17
14
14
|
15
15
LL | let _ = &mut self.x;
@@ -20,7 +20,7 @@ help: consider changing this to be a mutable reference
20
20
LL | fn foo<'z>(&'z mut self) {
21
21
| ~~~~~~~~~~~~
22
22
23
- error[E0596]: cannot borrow ` self.x` as mutable, as it is behind a `&` reference
23
+ error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
24
24
--> $DIR/issue-39544.rs:20:17
25
25
|
26
26
LL | let _ = &mut self.x;
@@ -31,7 +31,7 @@ help: consider changing this to be a mutable reference
31
31
LL | fn foo1(&mut self, other: &Z) {
32
32
| ~~~~~~~~~
33
33
34
- error[E0596]: cannot borrow ` other.x` as mutable, as it is behind a `&` reference
34
+ error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
35
35
--> $DIR/issue-39544.rs:21:17
36
36
|
37
37
LL | let _ = &mut other.x;
@@ -42,7 +42,7 @@ help: consider changing this to be a mutable reference
42
42
LL | fn foo1(&self, other: &mut Z) {
43
43
| +++
44
44
45
- error[E0596]: cannot borrow ` self.x` as mutable, as it is behind a `&` reference
45
+ error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
46
46
--> $DIR/issue-39544.rs:25:17
47
47
|
48
48
LL | let _ = &mut self.x;
@@ -53,7 +53,7 @@ help: consider changing this to be a mutable reference
53
53
LL | fn foo2<'a>(&'a mut self, other: &Z) {
54
54
| ~~~~~~~~~~~~
55
55
56
- error[E0596]: cannot borrow ` other.x` as mutable, as it is behind a `&` reference
56
+ error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
57
57
--> $DIR/issue-39544.rs:26:17
58
58
|
59
59
LL | let _ = &mut other.x;
@@ -64,7 +64,7 @@ help: consider changing this to be a mutable reference
64
64
LL | fn foo2<'a>(&'a self, other: &mut Z) {
65
65
| +++
66
66
67
- error[E0596]: cannot borrow ` self.x` as mutable, as it is behind a `&` reference
67
+ error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
68
68
--> $DIR/issue-39544.rs:30:17
69
69
|
70
70
LL | let _ = &mut self.x;
@@ -75,7 +75,7 @@ help: consider changing this to be a mutable reference
75
75
LL | fn foo3<'a>(self: &'a mut Self, other: &Z) {
76
76
| +++
77
77
78
- error[E0596]: cannot borrow ` other.x` as mutable, as it is behind a `&` reference
78
+ error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
79
79
--> $DIR/issue-39544.rs:31:17
80
80
|
81
81
LL | let _ = &mut other.x;
@@ -86,7 +86,7 @@ help: consider changing this to be a mutable reference
86
86
LL | fn foo3<'a>(self: &'a Self, other: &mut Z) {
87
87
| +++
88
88
89
- error[E0596]: cannot borrow ` other.x` as mutable, as it is behind a `&` reference
89
+ error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
90
90
--> $DIR/issue-39544.rs:35:17
91
91
|
92
92
LL | let _ = &mut other.x;
@@ -108,7 +108,7 @@ help: consider changing this to be mutable
108
108
LL | pub fn with_arg(mut z: Z, w: &Z) {
109
109
| +++
110
110
111
- error[E0596]: cannot borrow ` w.x` as mutable, as it is behind a `&` reference
111
+ error[E0596]: cannot borrow w.x as mutable, as it is behind a `&` reference
112
112
--> $DIR/issue-39544.rs:42:13
113
113
|
114
114
LL | let _ = &mut w.x;
0 commit comments