@@ -4,87 +4,87 @@ error[E0596]: cannot borrow immutable item `z.x` as mutable
44LL | let _ = &mut z.x; //~ ERROR cannot borrow
55 | ^^^^^^^^ cannot borrow as mutable
66 |
7- = note: Value not mutable causing this error : `z`
7+ = note: the value which is causing this path not to be mutable is... : `z`
88
99error[E0596]: cannot borrow immutable item `self.x` as mutable
1010 --> $DIR/issue-39544.rs:26:17
1111 |
1212LL | let _ = &mut self.x; //~ ERROR cannot borrow
1313 | ^^^^^^^^^^^ cannot borrow as mutable
1414 |
15- = note: Value not mutable causing this error : `*self`
15+ = note: the value which is causing this path not to be mutable is... : `*self`
1616
1717error[E0596]: cannot borrow immutable item `self.x` as mutable
1818 --> $DIR/issue-39544.rs:30:17
1919 |
2020LL | let _ = &mut self.x; //~ ERROR cannot borrow
2121 | ^^^^^^^^^^^ cannot borrow as mutable
2222 |
23- = note: Value not mutable causing this error : `*self`
23+ = note: the value which is causing this path not to be mutable is... : `*self`
2424
2525error[E0596]: cannot borrow immutable item `other.x` as mutable
2626 --> $DIR/issue-39544.rs:31:17
2727 |
2828LL | let _ = &mut other.x; //~ ERROR cannot borrow
2929 | ^^^^^^^^^^^^ cannot borrow as mutable
3030 |
31- = note: Value not mutable causing this error : `*other`
31+ = note: the value which is causing this path not to be mutable is... : `*other`
3232
3333error[E0596]: cannot borrow immutable item `self.x` as mutable
3434 --> $DIR/issue-39544.rs:35:17
3535 |
3636LL | let _ = &mut self.x; //~ ERROR cannot borrow
3737 | ^^^^^^^^^^^ cannot borrow as mutable
3838 |
39- = note: Value not mutable causing this error : `*self`
39+ = note: the value which is causing this path not to be mutable is... : `*self`
4040
4141error[E0596]: cannot borrow immutable item `other.x` as mutable
4242 --> $DIR/issue-39544.rs:36:17
4343 |
4444LL | let _ = &mut other.x; //~ ERROR cannot borrow
4545 | ^^^^^^^^^^^^ cannot borrow as mutable
4646 |
47- = note: Value not mutable causing this error : `*other`
47+ = note: the value which is causing this path not to be mutable is... : `*other`
4848
4949error[E0596]: cannot borrow immutable item `self.x` as mutable
5050 --> $DIR/issue-39544.rs:40:17
5151 |
5252LL | let _ = &mut self.x; //~ ERROR cannot borrow
5353 | ^^^^^^^^^^^ cannot borrow as mutable
5454 |
55- = note: Value not mutable causing this error : `*self`
55+ = note: the value which is causing this path not to be mutable is... : `*self`
5656
5757error[E0596]: cannot borrow immutable item `other.x` as mutable
5858 --> $DIR/issue-39544.rs:41:17
5959 |
6060LL | let _ = &mut other.x; //~ ERROR cannot borrow
6161 | ^^^^^^^^^^^^ cannot borrow as mutable
6262 |
63- = note: Value not mutable causing this error : `*other`
63+ = note: the value which is causing this path not to be mutable is... : `*other`
6464
6565error[E0596]: cannot borrow immutable item `other.x` as mutable
6666 --> $DIR/issue-39544.rs:45:17
6767 |
6868LL | let _ = &mut other.x; //~ ERROR cannot borrow
6969 | ^^^^^^^^^^^^ cannot borrow as mutable
7070 |
71- = note: Value not mutable causing this error : `*other`
71+ = note: the value which is causing this path not to be mutable is... : `*other`
7272
7373error[E0596]: cannot borrow immutable item `z.x` as mutable
7474 --> $DIR/issue-39544.rs:51:13
7575 |
7676LL | let _ = &mut z.x; //~ ERROR cannot borrow
7777 | ^^^^^^^^ cannot borrow as mutable
7878 |
79- = note: Value not mutable causing this error : `z`
79+ = note: the value which is causing this path not to be mutable is... : `z`
8080
8181error[E0596]: cannot borrow immutable item `w.x` as mutable
8282 --> $DIR/issue-39544.rs:52:13
8383 |
8484LL | let _ = &mut w.x; //~ ERROR cannot borrow
8585 | ^^^^^^^^ cannot borrow as mutable
8686 |
87- = note: Value not mutable causing this error : `*w`
87+ = note: the value which is causing this path not to be mutable is... : `*w`
8888
8989error[E0594]: cannot assign to immutable item `*x.0`
9090 --> $DIR/issue-39544.rs:58:5
0 commit comments