diff --git a/src/test/run-pass/expr-alt-generic.rs b/src/test/run-pass/expr-alt-generic.rs index 63beeb0153c..0d1f5e2bbe8 100644 --- a/src/test/run-pass/expr-alt-generic.rs +++ b/src/test/run-pass/expr-alt-generic.rs @@ -15,14 +15,11 @@ fn test_bool() { } type t = {a: int, b: int}; -impl t : cmp::Eq { - pure fn eq(&&other: t) -> bool { - self.a == other.a && self.b == other.b - } -} fn test_rec() { - fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; } + fn compare_rec(t1: t, t2: t) -> bool { + t1.a == t2.a && t1.b == t2.b + } test_generic::({a: 1, b: 2}, compare_rec); } diff --git a/src/test/run-pass/expr-block-generic.rs b/src/test/run-pass/expr-block-generic.rs index a1677faa384..71e6f962e35 100644 --- a/src/test/run-pass/expr-block-generic.rs +++ b/src/test/run-pass/expr-block-generic.rs @@ -17,14 +17,11 @@ fn test_bool() { } type t = {a: int, b: int}; -impl t : cmp::Eq { - pure fn eq(&&other: t) -> bool { - self.a == other.a && self.b == other.b - } -} fn test_rec() { - fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; } + fn compare_rec(t1: t, t2: t) -> bool { + t1.a == t2.a && t1.b == t2.b + } test_generic::({a: 1, b: 2}, compare_rec); } diff --git a/src/test/run-pass/expr-if-generic.rs b/src/test/run-pass/expr-if-generic.rs index a679aae779e..1ad0b006592 100644 --- a/src/test/run-pass/expr-if-generic.rs +++ b/src/test/run-pass/expr-if-generic.rs @@ -17,14 +17,11 @@ fn test_bool() { } type t = {a: int, b: int}; -impl t : cmp::Eq { - pure fn eq(&&other: t) -> bool { - self.a == other.a && self.b == other.b - } -} fn test_rec() { - fn compare_rec(t1: t, t2: t) -> bool { return t1 == t2; } + fn compare_rec(t1: t, t2: t) -> bool { + t1.a == t2.a && t1.b == t2.b + } test_generic::({a: 1, b: 2}, {a: 2, b: 3}, compare_rec); }