@@ -9,7 +9,7 @@ help: consider changing this to be mutable
99LL | fn deref_mut_field1(mut x: Own<Point>) {
1010 | +++
1111
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
1313 --> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:65:10
1414 |
1515LL | &mut x.y
@@ -41,7 +41,7 @@ help: consider changing this to be mutable
4141LL | fn assign_field1<'a>(mut x: Own<Point>) {
4242 | +++
4343
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
4545 --> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:92:5
4646 |
4747LL | x.y = 3;
@@ -73,7 +73,7 @@ help: consider changing this to be mutable
7373LL | fn deref_mut_method1(mut x: Own<Point>) {
7474 | +++
7575
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
7777 --> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:121:5
7878 |
7979LL | x.y_mut()
@@ -95,7 +95,7 @@ help: consider changing this to be mutable
9595LL | fn assign_method1<'a>(mut x: Own<Point>) {
9696 | +++
9797
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
9999 --> $DIR/borrowck-borrow-overloaded-auto-deref-mut.rs:133:6
100100 |
101101LL | *x.y_mut() = 3;
0 commit comments