1 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
2 --> $DIR/borrowck-borrow-overloaded-deref-mut.rs:29:25
4 LL | let __isize = &mut *x;
5 | ^ cannot borrow as mutable
7 help: consider changing this to be mutable
9 LL | fn deref_mut1(mut x: Own<isize>) {
12 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
13 --> $DIR/borrowck-borrow-overloaded-deref-mut.rs:41:11
16 | ^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
18 help: consider changing this to be a mutable reference
20 LL | fn deref_extend_mut1<'a>(x: &'a mut Own<isize>) -> &'a mut isize {
23 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
24 --> $DIR/borrowck-borrow-overloaded-deref-mut.rs:49:6
27 | ^ cannot borrow as mutable
29 help: consider changing this to be mutable
31 LL | fn assign1<'a>(mut x: Own<isize>) {
34 error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
35 --> $DIR/borrowck-borrow-overloaded-deref-mut.rs:53:6
38 | ^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
40 help: consider changing this to be a mutable reference
42 LL | fn assign2<'a>(x: &'a mut Own<isize>) {
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0596`.