rust/src/test/ui/issues/issue-18738.rs
2019-07-03 06:30:28 +09:00

18 lines
348 B
Rust

// build-pass (FIXME(62277): could be 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() {}