]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/log-knows-the-names-of-variants.rs
std: Rename Show/String to Debug/Display
[rust.git] / src / test / run-pass / log-knows-the-names-of-variants.rs
index 45fd2098dc42e8b91b49709f5c25cb0241fbe667..e8852377957f88ed3a406dff051bd8f6d1e99de8 100644 (file)
@@ -8,20 +8,20 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[derive(Show)]
+#[derive(Debug)]
 enum foo {
-  a(uint),
+  a(usize),
   b(String),
   c,
 }
 
-#[derive(Show)]
+#[derive(Debug)]
 enum bar {
   d, e, f
 }
 
 pub fn main() {
-    assert_eq!("a(22u)".to_string(), format!("{:?}", foo::a(22u)));
+    assert_eq!("a(22)".to_string(), format!("{:?}", foo::a(22)));
     assert_eq!("c".to_string(), format!("{:?}", foo::c));
     assert_eq!("d".to_string(), format!("{:?}", bar::d));
 }