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