]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/show-boxed-slice.rs
std: Rename Show/String to Debug/Display
[rust.git] / src / test / run-pass / show-boxed-slice.rs
index 3d2672653323f25104805a0ad56a7b66b8911fc9..f496765edca9882266cb850a8fc4399d93018680 100644 (file)
@@ -8,9 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[deriving(Show)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
+#[derive(Debug)]
 struct Foo(Box<[u8]>);
 
 pub fn main() {
-    println!("{}", Foo(box [0, 1, 2]));
+    println!("{:?}", Foo(box [0, 1, 2]));
 }