]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-3344.rs
create a sensible comparison trait hierarchy
[rust.git] / src / test / compile-fail / issue-3344.rs
index 88414dddd660c2101edbe5ac45399201d8a75028..e79a5871e70c6aa0c1858fa0864542b518b43e51 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[deriving(Eq)]
 struct thing(uint);
 impl Ord for thing { //~ ERROR not all trait methods implemented, missing: `lt`
     fn le(&self, other: &thing) -> bool { true }