syntax: use UFCS in the expansion of #[deriving(Ord)]

cc #18755
This commit is contained in:
Jorge Aparicio 2014-12-06 11:56:55 -05:00
parent 558f8d8e3e
commit 8dcdd1e76a
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() {}