]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/cci_borrow.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / cci_borrow.rs
index cb77c63d4511a740f8cddbd5cd1656f7632867c5..ef5ee5aa3b4ab65a2e56c9c5265c07f5b3cf0266 100644 (file)
@@ -8,17 +8,17 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// ignore-fast - check-fast doesn't understand aux-build
 // aux-build:cci_borrow_lib.rs
 
-#[feature(managed_boxes)];
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 extern crate cci_borrow_lib;
 use cci_borrow_lib::foo;
 
 pub fn main() {
-    let p = @22u;
-    let r = foo(p);
-    info!("r={}", r);
+    let p = box 22u;
+    let r = foo(&*p);
+    println!("r={}", r);
     assert_eq!(r, 22u);
 }