1 error[E0596]: cannot borrow data in an `Rc` as mutable
2 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:36:19
4 LL | let __isize = &mut x.y;
5 | ^^^^^^^^ cannot borrow as mutable
7 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
9 error[E0596]: cannot borrow data in an `Rc` as mutable
10 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:40:19
12 LL | let __isize = &mut x.y;
13 | ^^^^^^^^ cannot borrow as mutable
15 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
17 error[E0596]: cannot borrow data in an `Rc` as mutable
18 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:48:5
21 | ^^^^^^^^ cannot borrow as mutable
23 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
25 error[E0596]: cannot borrow data in an `Rc` as mutable
26 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:52:5
29 | ^^^^^^^^ cannot borrow as mutable
31 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
33 error[E0594]: cannot assign to data in an `Rc`
34 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:56:5
37 | ^^^^^^^ cannot assign
39 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
41 error[E0594]: cannot assign to data in an `Rc`
42 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:60:5
45 | ^^^^^^^ cannot assign
47 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
49 error[E0594]: cannot assign to data in an `Rc`
50 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:64:5
53 | ^^^^^^^ cannot assign
55 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
57 error[E0596]: cannot borrow data in an `Rc` as mutable
58 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:72:5
61 | ^^^^^^^^^^^ cannot borrow as mutable
63 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
65 error[E0596]: cannot borrow data in an `Rc` as mutable
66 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:76:5
69 | ^^^^^^^^^^^ cannot borrow as mutable
71 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
73 error[E0596]: cannot borrow data in an `Rc` as mutable
74 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:84:5
77 | ^^^^^^^^^ cannot borrow as mutable
79 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
81 error[E0596]: cannot borrow data in an `Rc` as mutable
82 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:88:5
85 | ^^^^^^^^^ cannot borrow as mutable
87 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
89 error[E0596]: cannot borrow data in an `Rc` as mutable
90 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:92:6
93 | ^^^^^^^^^ cannot borrow as mutable
95 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
97 error[E0596]: cannot borrow data in an `Rc` as mutable
98 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:96:6
101 | ^^^^^^^^^ cannot borrow as mutable
103 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
105 error[E0596]: cannot borrow data in an `Rc` as mutable
106 --> $DIR/borrowck-borrow-overloaded-auto-deref.rs:100:6
109 | ^^^^^^^^^ cannot borrow as mutable
111 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<Point>`
113 error: aborting due to 14 previous errors
115 Some errors have detailed explanations: E0594, E0596.
116 For more information about an error, try `rustc --explain E0594`.