rust/tests/ui/xcrate/auxiliary/xcrate_unit_struct.rs
2023-11-19 17:50:46 +00:00

34 lines
526 B
Rust

#![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)
}