1 error[E0596]: cannot borrow `*rofl` as mutable, as it is behind a `&` reference
2 --> $DIR/issue-85765.rs:5:5
4 LL | let rofl: &Vec<Vec<i32>> = &mut test;
5 | ---- help: consider changing this to be a mutable reference: `&mut Vec<Vec<i32>>`
7 LL | rofl.push(Vec::new());
8 | ^^^^^^^^^^^^^^^^^^^^^ `rofl` is a `&` reference, so the data it refers to cannot be borrowed as mutable
10 error[E0594]: cannot assign to `*r`, which is behind a `&` reference
11 --> $DIR/issue-85765.rs:12:5
14 | ------- help: consider changing this to be a mutable reference: `&mut mutvar`
17 | ^^^^^^ `r` is a `&` reference, so the data it refers to cannot be written
19 error[E0594]: cannot assign to `*x`, which is behind a `&` reference
20 --> $DIR/issue-85765.rs:19:5
22 LL | let x: &usize = &mut{0};
23 | - help: consider changing this to be a mutable reference: `&mut usize`
26 | ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written
28 error[E0594]: cannot assign to `*y`, which is behind a `&` reference
29 --> $DIR/issue-85765.rs:26:5
31 LL | let y: &usize = &mut(0);
32 | - help: consider changing this to be a mutable reference: `&mut usize`
35 | ^^^^^^ `y` is a `&` reference, so the data it refers to cannot be written
37 error: aborting due to 4 previous errors
39 Some errors have detailed explanations: E0594, E0596.
40 For more information about an error, try `rustc --explain E0594`.