mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 05:04:24 +00:00
18 lines
311 B
Rust
18 lines
311 B
Rust
// check-pass
|
|
#![allow(dead_code)]
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
|
enum Test<'a> {
|
|
Int(&'a isize),
|
|
Slice(&'a [u8]),
|
|
}
|
|
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
|
struct Version {
|
|
vendor_info: &'static str
|
|
}
|
|
|
|
#[derive(Eq, PartialEq, PartialOrd, Ord)]
|
|
struct Foo(&'static str);
|
|
|
|
fn main() {}
|