]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-3794.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / issue-3794.rs
index f32564e8b750365e30a0a2a33888385df5dd35d6..91c938981c10bc85acaaf70a7b975947cde9325c 100644 (file)
@@ -8,18 +8,21 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait T {
     fn print(&self);
 }
 
-#[deriving(Show)]
+#[derive(Show)]
 struct S {
     s: int,
 }
 
 impl T for S {
     fn print(&self) {
-        println!("{}", self);
+        println!("{:?}", self);
     }
 }