rollup merge of #19598: japaric/ord

cc #18755

r? @alexcrichton
cc @bjz
This commit is contained in:
Alex Crichton 2014-12-09 09:24:51 -08:00
commit 2a244ce7f4
2 changed files with 28 additions and 7 deletions

View file

@ -8,18 +8,18 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#[deriving(PartialEq, PartialOrd)]
#[deriving(Eq, PartialEq, PartialOrd, Ord)]
enum Test<'a> {
Int(&'a int),
Slice(&'a [u8]),
}
#[deriving(PartialEq, PartialOrd)]
#[deriving(Eq, PartialEq, PartialOrd, Ord)]
struct Version {
vendor_info: &'static str
}
#[deriving(PartialEq, PartialOrd)]
#[deriving(Eq, PartialEq, PartialOrd, Ord)]
struct Foo(&'static str);
fn main() {}