about summary refs log tree commit diff
path: root/src/test/run-pass/cmp-default.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/cmp-default.rs')
-rw-r--r--src/test/run-pass/cmp-default.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/run-pass/cmp-default.rs b/src/test/run-pass/cmp-default.rs
index 92b14dc64b8..3650564d929 100644
--- a/src/test/run-pass/cmp-default.rs
+++ b/src/test/run-pass/cmp-default.rs
@@ -14,7 +14,9 @@ struct Fool(bool);
 
 impl Eq for Fool {
     fn eq(&self, other: &Fool) -> bool {
-        **self != **other
+        let Fool(this) = *self;
+        let Fool(other) = *other;
+        this != other
     }
 }
 
@@ -22,7 +24,9 @@ struct Int(int);
 
 impl Ord for Int {
     fn lt(&self, other: &Int) -> bool {
-        **self < **other
+        let Int(this) = *self;
+        let Int(other) = *other;
+        this < other
     }
 }
 
@@ -30,7 +34,9 @@ struct RevInt(int);
 
 impl Ord for RevInt {
     fn lt(&self, other: &RevInt) -> bool {
-        **self > **other
+        let RevInt(this) = *self;
+        let RevInt(other) = *other;
+        this > other
     }
 }