]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-mut-slice-of-imm-vec.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / compile-fail / borrowck-mut-slice-of-imm-vec.rs
index b1ca61ebbcfd09bbce185d667c0a4bd6c2c53279..283d6398e9ad38efecfa62565811972839c3c8b1 100644 (file)
@@ -14,5 +14,5 @@ fn write(v: &mut [int]) {
 
 fn main() {
     let v = vec!(1, 2, 3);
-    write(v); //~ ERROR cannot borrow
+    write(v.as_mut_slice()); //~ ERROR cannot borrow
 }