rust/tests/ui/deriving/issue-18738.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
312 B
Rust
Raw Normal View History

//@ 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() {}