]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/small-enums-with-fields.rs
std: Rename Show/String to Debug/Display
[rust.git] / src / test / run-pass / small-enums-with-fields.rs
index cbc3bbadf222ca6488e708b9f83c5351c5825531..fc45e107bb0eb79d38643ee15c1e0bc104eee56e 100644 (file)
@@ -8,11 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(macro_rules)]
-
 use std::mem::size_of;
 
-#[deriving(PartialEq, Show)]
+#[derive(PartialEq, Debug)]
 enum Either<T, U> { Left(T), Right(U) }
 
 macro_rules! check {
@@ -22,8 +20,8 @@ macro_rules! check {
             static S: $t = $e;
             let v: $t = $e;
             assert_eq!(S, v);
-            assert_eq!(format!("{}", v).as_slice(), $s);
-            assert_eq!(format!("{}", S).as_slice(), $s);
+            assert_eq!(format!("{:?}", v).as_slice(), $s);
+            assert_eq!(format!("{:?}", S).as_slice(), $s);
         });*
     }}
 }