1 error[E0596]: cannot borrow `*rofl` as mutable, as it is behind a `&` reference
2 --> $DIR/issue-85765.rs:5:5
4 LL | rofl.push(Vec::new());
5 | ^^^^^^^^^^^^^^^^^^^^^ `rofl` is a `&` reference, so the data it refers to cannot be borrowed as mutable
7 help: consider changing this binding's type
9 LL | let rofl: &mut Vec<Vec<i32>> = &mut test;
12 error[E0594]: cannot assign to `*r`, which is behind a `&` reference
13 --> $DIR/issue-85765.rs:12:5
16 | ^^^^^^ `r` is a `&` reference, so the data it refers to cannot be written
18 help: consider changing this to be a mutable reference
20 LL | let r = &mut mutvar;
23 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
24 --> $DIR/issue-85765.rs:19:5
27 | ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
29 help: consider changing this binding's type
31 LL | let x: &mut usize = &mut{0};
34 error[E0594]: cannot assign to `*y`, which is behind a `&` reference
35 --> $DIR/issue-85765.rs:26:5
38 | ^^^^^^ `y` is a `&` reference, so the data it refers to cannot be written
40 help: consider changing this binding's type
42 LL | let y: &mut usize = &mut(0);
45 error: aborting due to 4 previous errors
47 Some errors have detailed explanations: E0594, E0596.
48 For more information about an error, try `rustc --explain E0594`.