]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrow-by-val-method-receiver.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / run-pass / borrow-by-val-method-receiver.rs
index 374c3e7fc539feeb230ffd1ee3436bd00082446f..df334a6fcec55fdd23a01b25a1da9206b58627b8 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;
+
 trait Foo {
     fn foo(self);
 }
@@ -18,5 +20,5 @@ fn foo(self) {}
 
 pub fn main() {
     let items = vec!( 3, 5, 1, 2, 4 );
-    items.foo();
+    items.as_slice().foo();
 }