fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0596]: cannot borrow `*rofl` as mutable, as it is behind a `&` reference 2 --> $DIR/issue-85765-closure.rs:6:9 3 | 4LL | rofl.push(Vec::new()); 5 | ^^^^ `rofl` is a `&` reference, so the data it refers to cannot be borrowed as mutable 6 | 7help: consider changing this binding's type 8 | 9LL | let rofl: &mut Vec<Vec<i32>> = &mut test; 10 | ~~~~~~~~~~~~~~~~~~ 11 12error[E0594]: cannot assign to `*r`, which is behind a `&` reference 13 --> $DIR/issue-85765-closure.rs:13:9 14 | 15LL | *r = 0; 16 | ^^^^^^ `r` is a `&` reference, so the data it refers to cannot be written 17 | 18help: consider changing this to be a mutable reference 19 | 20LL | let r = &mut mutvar; 21 | +++ 22 23error[E0594]: cannot assign to `*x`, which is behind a `&` reference 24 --> $DIR/issue-85765-closure.rs:20:9 25 | 26LL | *x = 1; 27 | ^^^^^^ `x` is a `&` reference, so the data it refers to cannot be written 28 | 29help: consider changing this binding's type 30 | 31LL | let x: &mut usize = &mut{0}; 32 | ~~~~~~~~~~ 33 34error[E0594]: cannot assign to `*y`, which is behind a `&` reference 35 --> $DIR/issue-85765-closure.rs:27:9 36 | 37LL | *y = 1; 38 | ^^^^^^ `y` is a `&` reference, so the data it refers to cannot be written 39 | 40help: consider changing this binding's type 41 | 42LL | let y: &mut usize = &mut(0); 43 | ~~~~~~~~~~ 44 45error: aborting due to 4 previous errors 46 47Some errors have detailed explanations: E0594, E0596. 48For more information about an error, try `rustc --explain E0594`.