1 error[E0596]: cannot borrow data in an `Rc` as mutable
2 --> $DIR/borrowck-borrow-overloaded-deref.rs:12:19
4 LL | let __isize = &mut *x;
5 | ^^^^^^^ cannot borrow as mutable
7 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
9 error[E0596]: cannot borrow data in an `Rc` as mutable
10 --> $DIR/borrowck-borrow-overloaded-deref.rs:16:19
12 LL | let __isize = &mut *x;
13 | ^^^^^^^ cannot borrow as mutable
15 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
17 error[E0596]: cannot borrow data in an `Rc` as mutable
18 --> $DIR/borrowck-borrow-overloaded-deref.rs:24:5
21 | ^^^^^^^^ cannot borrow as mutable
23 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
25 error[E0596]: cannot borrow data in an `Rc` as mutable
26 --> $DIR/borrowck-borrow-overloaded-deref.rs:28:5
29 | ^^^^^^^^ cannot borrow as mutable
31 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
33 error[E0594]: cannot assign to data in an `Rc`
34 --> $DIR/borrowck-borrow-overloaded-deref.rs:32:5
37 | ^^^^^^ cannot assign
39 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
41 error[E0594]: cannot assign to data in an `Rc`
42 --> $DIR/borrowck-borrow-overloaded-deref.rs:36:5
45 | ^^^^^^^ cannot assign
47 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
49 error[E0594]: cannot assign to data in an `Rc`
50 --> $DIR/borrowck-borrow-overloaded-deref.rs:40:5
53 | ^^^^^^^ cannot assign
55 = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Rc<isize>`
57 error: aborting due to 7 previous errors
59 Some errors have detailed explanations: E0594, E0596.
60 For more information about an error, try `rustc --explain E0594`.