]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/coerce-reborrow-mut-vec-rcvr.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / coerce-reborrow-mut-vec-rcvr.rs
index 31620973ce77281862d5ec17c1022844d0141564..686b8545b5ef8964a98660d87afbf2dec65da9a7 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 bar(v: &mut [uint]) {
     v.reverse();
     v.reverse();
@@ -16,6 +18,6 @@ fn bar(v: &mut [uint]) {
 
 pub fn main() {
     let mut the_vec = vec!(1, 2, 3, 100);
-    bar(the_vec);
+    bar(the_vec.as_mut_slice());
     assert_eq!(the_vec, vec!(100, 3, 2, 1));
 }