1 error[E0596]: cannot borrow immutable borrowed content as mutable
2 --> $DIR/borrowck-borrow-overloaded-deref.rs:33:24
4 LL | let __isize = &mut *x; //~ ERROR cannot borrow
5 | ^^ cannot borrow as mutable
7 error[E0596]: cannot borrow immutable borrowed content as mutable
8 --> $DIR/borrowck-borrow-overloaded-deref.rs:37:24
10 LL | let __isize = &mut *x; //~ ERROR cannot borrow
11 | ^^ cannot borrow as mutable
13 error[E0596]: cannot borrow immutable borrowed content as mutable
14 --> $DIR/borrowck-borrow-overloaded-deref.rs:45:10
16 LL | &mut **x //~ ERROR cannot borrow
17 | ^^^ cannot borrow as mutable
19 error[E0596]: cannot borrow immutable borrowed content as mutable
20 --> $DIR/borrowck-borrow-overloaded-deref.rs:49:10
22 LL | &mut **x //~ ERROR cannot borrow
23 | ^^^ cannot borrow as mutable
25 error[E0594]: cannot assign to immutable borrowed content
26 --> $DIR/borrowck-borrow-overloaded-deref.rs:53:5
28 LL | *x = 3; //~ ERROR cannot assign
29 | ^^^^^^ cannot borrow as mutable
31 error[E0594]: cannot assign to immutable borrowed content
32 --> $DIR/borrowck-borrow-overloaded-deref.rs:57:5
34 LL | **x = 3; //~ ERROR cannot assign
35 | ^^^^^^^ cannot borrow as mutable
37 error[E0594]: cannot assign to immutable borrowed content
38 --> $DIR/borrowck-borrow-overloaded-deref.rs:61:5
40 LL | **x = 3; //~ ERROR cannot assign
41 | ^^^^^^^ cannot borrow as mutable
43 error: aborting due to 7 previous errors
45 Some errors occurred: E0594, E0596.
46 For more information about an error, try `rustc --explain E0594`.