1 error[E0596]: cannot borrow `**ref_mref_x` as mutable, as it is behind a `&` reference
2 --> $DIR/mut_ref.rs:12:13
5 | ^^ `ref_mref_x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
8 | ------------ mutable borrow occurs due to use of `**ref_mref_x` in closure
10 help: consider changing this to be a mutable reference
12 LL | let ref_mref_x = &mut mref_x;
15 error[E0596]: cannot borrow `**mref_ref_x` as mutable, as it is behind a `&` reference
16 --> $DIR/mut_ref.rs:26:13
19 | ^^ cannot borrow as mutable
21 LL | **mref_ref_x = y;
22 | ------------ mutable borrow occurs due to use of `**mref_ref_x` in closure
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0596`.