summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-18738.rs
blob: bcc1ec03f2625b4f494bf02d9c9f7d2ef1d999e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() {}