2019-11-04 00:00:00 +00:00
|
|
|
//@ check-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2014-12-31 04:32:49 +00:00
|
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
2014-11-07 22:16:59 +00:00
|
|
|
enum Test<'a> {
|
2015-03-26 00:06:52 +00:00
|
|
|
Int(&'a isize),
|
2014-11-07 22:16:59 +00:00
|
|
|
Slice(&'a [u8]),
|
|
|
|
}
|
|
|
|
|
2014-12-31 04:32:49 +00:00
|
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
2014-11-07 22:16:59 +00:00
|
|
|
struct Version {
|
|
|
|
vendor_info: &'static str
|
|
|
|
}
|
|
|
|
|
2014-12-31 04:32:49 +00:00
|
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
2014-11-07 22:16:59 +00:00
|
|
|
struct Foo(&'static str);
|
|
|
|
|
|
|
|
fn main() {}
|