mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
29 lines
446 B
Rust
29 lines
446 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 {
|
|
foo: isize,
|
|
}
|
|
|
|
#[derive(Copy, Clone)]
|
|
pub enum EnumWithVariants {
|
|
EnumVariant,
|
|
EnumVariantArg(isize)
|
|
}
|