summaryrefslogtreecommitdiffstats
path: root/tests/ui/deriving/auxiliary/derive-no-std.rs
blob: 3893dc1be079c5b303481e3a909ea4c62e58ad63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// no-prefer-dynamic

#![crate_type = "rlib"]
#![no_std]

// Issue #16803

#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
         Debug, Default, Copy)]
pub struct Foo {
    pub x: u32,
}

#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
         Debug, Copy)]
pub enum Bar {
    Qux,
    Quux(u32),
}

#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
         Debug, Copy)]
pub enum Void {}
#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
         Debug, Copy)]
pub struct Empty;
#[derive(Clone, Hash, PartialEq, Eq, PartialOrd, Ord,
         Debug, Copy)]
pub struct AlsoEmpty {}