commit
2a244ce7f4
2 changed files with 28 additions and 7 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue