fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable 2 --> $DIR/many-mutable-borrows.rs:2:9 3 | 4LL | let v = Vec::new(); 5 | ^ not mutable 6LL | v.push(0); 7 | - cannot borrow as mutable 8LL | v.push(0); 9 | - cannot borrow as mutable 10LL | v.push(0); 11 | - cannot borrow as mutable 12LL | v.push(0); 13 | - cannot borrow as mutable 14LL | v.push(0); 15 | - cannot borrow as mutable 16LL | v.push(0); 17 | - cannot borrow as mutable 18LL | v.push(0); 19 | - cannot borrow as mutable 20LL | v.push(0); 21 | - cannot borrow as mutable 22LL | v.push(0); 23 | - cannot borrow as mutable 24 | 25 = note: ...and 5 other attempted mutable borrows 26help: consider changing this to be mutable 27 | 28LL | let mut v = Vec::new(); 29 | +++ 30 31error: aborting due to previous error 32 33For more information about this error, try `rustc --explain E0596`.