@@ -9,7 +9,7 @@ help: consider changing this to be mutable
9
9
LL | fn deref_mut_field1(mut x: Own<Point>) {
10
10
| +++
11
11
12
- error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
12
+ error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
13
13
--> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:65:10
14
14
|
15
15
LL | &mut x.y
@@ -41,7 +41,7 @@ help: consider changing this to be mutable
41
41
LL | fn assign_field1<'a>(mut x: Own<Point>) {
42
42
| +++
43
43
44
- error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
44
+ error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
45
45
--> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:92:5
46
46
|
47
47
LL | x.y = 3;
@@ -73,7 +73,7 @@ help: consider changing this to be mutable
73
73
LL | fn deref_mut_method1(mut x: Own<Point>) {
74
74
| +++
75
75
76
- error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
76
+ error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
77
77
--> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:121:5
78
78
|
79
79
LL | x.y_mut()
@@ -95,7 +95,7 @@ help: consider changing this to be mutable
95
95
LL | fn assign_method1<'a>(mut x: Own<Point>) {
96
96
| +++
97
97
98
- error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
98
+ error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
99
99
--> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:133:6
100
100
|
101
101
LL | *x.y_mut() = 3;
0 commit comments