]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / cleanup-rvalue-temp-during-incomplete-alloc.rs
index b9587c57787082f63b8206b09d43f2102583e168..7bf7920fe070df21927b9c0bf4104b724d84e10c 100644 (file)
@@ -25,6 +25,7 @@
 // scenario worth testing.
 
 use std::task;
+use std::vec_ng::Vec;
 
 enum Conzabble {
     Bickwick(Foo)
@@ -41,7 +42,7 @@ fn get_bar(x: uint) -> Vec<uint> { vec!(x * 2) }
 pub fn fails() {
     let x = 2;
     let mut y = Vec::new();
-    y.push(~Bickwick(do_it(get_bar(x))));
+    y.push(~Bickwick(do_it(get_bar(x).as_slice())));
 }
 
 pub fn main() {