blob: 7c151da3c368b748f572a2d85d589ef8bf9dc60a [file] [log] [blame]
error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
--> $DIR/borrowck-mut-slice-of-imm-vec.rs:17:11
|
LL | let v = vec![1, 2, 3];
| - help: consider changing this to be mutable: `mut v`
LL | write(&mut v); //~ ERROR cannot borrow
| ^^^^^^ cannot borrow as mutable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.