2016-04-26 10:51:14 -07:00
|
|
|
#![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 {
|
2023-11-08 21:59:10 +00:00
|
|
|
pub foo: isize,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
pub struct StructWithPrivFields {
|
2016-04-26 10:51:14 -07:00
|
|
|
foo: isize,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone)]
|
|
|
|
pub enum EnumWithVariants {
|
|
|
|
EnumVariant,
|
|
|
|
EnumVariantArg(isize)
|
|
|
|
}
|