about summary refs log tree commit diff
path: root/src/test/run-pass/auto-encode.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-07 16:36:30 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-03-11 09:35:58 -0700
commite48446d060bb35925af0e79fcd2554f83ee26ecd (patch)
tree099a538dcad8e80d443fd718d364fc98ee13266b /src/test/run-pass/auto-encode.rs
parentbd2d17e4a1f75bc7e451fc1054d98ff13c456850 (diff)
downloadrust-e48446d060bb35925af0e79fcd2554f83ee26ecd.tar.gz
rust-e48446d060bb35925af0e79fcd2554f83ee26ecd.zip
test: Remove newtype enums from the test suite. rs=deenum
Diffstat (limited to 'src/test/run-pass/auto-encode.rs')
-rw-r--r--src/test/run-pass/auto-encode.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/run-pass/auto-encode.rs b/src/test/run-pass/auto-encode.rs
index f9e5ebf261c..b6fdb07789c 100644
--- a/src/test/run-pass/auto-encode.rs
+++ b/src/test/run-pass/auto-encode.rs
@@ -85,13 +85,6 @@ impl cmp::Eq for Expr {
     pure fn ne(&self, other: &Expr) -> bool { !(*self).eq(other) }
 }
 
-impl cmp::Eq for AnEnum {
-    pure fn eq(&self, other: &AnEnum) -> bool {
-        (*self).v == other.v
-    }
-    pure fn ne(&self, other: &AnEnum) -> bool { !(*self).eq(other) }
-}
-
 impl cmp::Eq for Point {
     pure fn eq(&self, other: &Point) -> bool {
         self.x == other.x && self.y == other.y
@@ -141,10 +134,6 @@ struct SomeStruct { v: ~[uint] }
 
 #[auto_encode]
 #[auto_decode]
-enum AnEnum = SomeStruct;
-
-#[auto_encode]
-#[auto_decode]
 struct Point {x: uint, y: uint}
 
 #[auto_encode]
@@ -168,10 +157,6 @@ pub fn main() {
     test_prettyprint(a, &~"Spanned {lo: 0u, hi: 5u, node: 22u}");
     test_ebml(a);
 
-    let a = &AnEnum(SomeStruct {v: ~[1u, 2u, 3u]});
-    test_prettyprint(a, &~"AnEnum(SomeStruct {v: ~[1u, 2u, 3u]})");
-    test_ebml(a);
-
     let a = &Point {x: 3u, y: 5u};
     test_prettyprint(a, &~"Point {x: 3u, y: 5u}");
     test_ebml(a);