]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrowck-mut-vec-as-imm-slice.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / borrowck-mut-vec-as-imm-slice.rs
index e6fcb1ca9514926bcba512a1bd80fb5e47c6ed76..0b46f49ad93609172792d09ff093fd38d4fd6974 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+use std::vec_ng::Vec;
+
 fn want_slice(v: &[int]) -> int {
     let mut sum = 0;
     for i in v.iter() { sum += *i; }
@@ -15,7 +17,7 @@ fn want_slice(v: &[int]) -> int {
 }
 
 fn has_mut_vec(v: Vec<int> ) -> int {
-    want_slice(v)
+    want_slice(v.as_slice())
 }
 
 pub fn main() {