diff options
| author | bors <bors@rust-lang.org> | 2014-05-30 21:21:39 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-30 21:21:39 -0700 |
| commit | 60a43f9bc5d24b47aae9681fc7ef47d517329e59 (patch) | |
| tree | c0e46f35c6d6482996e6b10eaf635201b51e82d4 /src/test/run-pass/deriving-cmp-generic-struct.rs | |
| parent | cc4513202d6f9c6896054ebaa1d99230b06e9f10 (diff) | |
| parent | bb96ee6123082908dba86cb22344f0c23915bf06 (diff) | |
| download | rust-60a43f9bc5d24b47aae9681fc7ef47d517329e59.tar.gz rust-60a43f9bc5d24b47aae9681fc7ef47d517329e59.zip | |
auto merge of #14534 : alexcrichton/rust/snapshots, r=sfackler
This is part 2 of the saga of renaming the Partial/Total equality and comparison traits.
Diffstat (limited to 'src/test/run-pass/deriving-cmp-generic-struct.rs')
| -rw-r--r-- | src/test/run-pass/deriving-cmp-generic-struct.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/run-pass/deriving-cmp-generic-struct.rs b/src/test/run-pass/deriving-cmp-generic-struct.rs index 4f62d1fa631..36ec0e834ba 100644 --- a/src/test/run-pass/deriving-cmp-generic-struct.rs +++ b/src/test/run-pass/deriving-cmp-generic-struct.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#[deriving(Eq, TotalEq, Ord, TotalOrd)] +#[deriving(PartialEq, TotalEq, PartialOrd, TotalOrd)] struct S<T> { x: T, y: T @@ -18,7 +18,7 @@ pub fn main() { let s1 = S {x: 1, y: 1}; let s2 = S {x: 1, y: 2}; - // in order for both Ord and TotalOrd + // in order for both PartialOrd and TotalOrd let ss = [s1, s2]; for (i, s1) in ss.iter().enumerate() { @@ -31,11 +31,11 @@ pub fn main() { let gt = i > j; let ge = i >= j; - // Eq + // PartialEq assert_eq!(*s1 == *s2, eq); assert_eq!(*s1 != *s2, !eq); - // Ord + // PartialOrd assert_eq!(*s1 < *s2, lt); assert_eq!(*s1 > *s2, gt); |
