diff options
Diffstat (limited to 'src/test/run-pass/trait-inheritance-overloading-simple.rs')
| -rw-r--r-- | src/test/run-pass/trait-inheritance-overloading-simple.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/trait-inheritance-overloading-simple.rs b/src/test/run-pass/trait-inheritance-overloading-simple.rs index 13cfb08e81b..bd9bc9e9b88 100644 --- a/src/test/run-pass/trait-inheritance-overloading-simple.rs +++ b/src/test/run-pass/trait-inheritance-overloading-simple.rs @@ -8,14 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::cmp::Eq; +use std::cmp::PartialEq; -trait MyNum : Eq { } +trait MyNum : PartialEq { } #[deriving(Show)] struct MyInt { val: int } -impl Eq for MyInt { +impl PartialEq for MyInt { fn eq(&self, other: &MyInt) -> bool { self.val == other.val } fn ne(&self, other: &MyInt) -> bool { !self.eq(other) } } |
