summaryrefslogtreecommitdiffstats
path: root/tests/ui/xcrate/auxiliary/xcrate_unit_struct.rs
blob: 4f8b3508398f23b025d8c4e0af528c8371df1778 (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
30
31
32
33
#![crate_type = "lib"]

// used by the rpass test

#[derive(Copy, Clone)]
pub struct Struct;

#[derive(Copy, Clone)]
pub enum Unit {
    UnitVariant,
    Argument(Struct)
}

#[derive(Copy, Clone)]
pub struct TupleStruct(pub usize, pub &'static str);

// used by the cfail test

#[derive(Copy, Clone)]
pub struct StructWithFields {
    pub foo: isize,
}

#[derive(Copy, Clone)]
pub struct StructWithPrivFields {
    foo: isize,
}

#[derive(Copy, Clone)]
pub enum EnumWithVariants {
    EnumVariant,
    EnumVariantArg(isize)
}