]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/regions-dependent-autoslice.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / regions-dependent-autoslice.rs
index 8cbdff6691a4a73085811762bf6fa444097aafcc..3a472decc7c28d59fee40d96b483b042a0c75ad0 100644 (file)
@@ -11,6 +11,8 @@
 // Test lifetimes are linked properly when we autoslice a vector.
 // Issue #3148.
 
+use std::vec_ng::Vec;
+
 fn subslice1<'r>(v: &'r [uint]) -> &'r [uint] { v }
 
 fn both<'r>(v: &'r [uint]) -> &'r [uint] {
@@ -19,5 +21,5 @@ fn both<'r>(v: &'r [uint]) -> &'r [uint] {
 
 pub fn main() {
     let v = vec!(1,2,3);
-    both(v);
+    both(v.as_slice());
 }