2013-08-07 11:52:33 -07:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![crate_type = "lib"]
|
2013-08-07 11:52:33 -07:00
|
|
|
|
|
|
|
// used by the rpass test
|
|
|
|
|
2015-01-24 16:36:30 -05:00
|
|
|
#[derive(Copy)]
|
2013-08-07 11:52:33 -07:00
|
|
|
pub struct Struct;
|
|
|
|
|
2015-01-24 16:36:30 -05:00
|
|
|
#[derive(Copy)]
|
2013-08-07 11:52:33 -07:00
|
|
|
pub enum Unit {
|
2014-09-11 17:07:49 +12:00
|
|
|
UnitVariant,
|
2013-08-07 11:52:33 -07:00
|
|
|
Argument(Struct)
|
|
|
|
}
|
|
|
|
|
2015-01-24 16:36:30 -05:00
|
|
|
#[derive(Copy)]
|
2015-03-25 17:06:52 -07:00
|
|
|
pub struct TupleStruct(pub usize, pub &'static str);
|
2014-10-01 23:28:54 +02:00
|
|
|
|
2013-08-07 11:52:33 -07:00
|
|
|
// used by the cfail test
|
|
|
|
|
2015-01-24 16:36:30 -05:00
|
|
|
#[derive(Copy)]
|
2013-08-07 11:52:33 -07:00
|
|
|
pub struct StructWithFields {
|
2015-03-25 17:06:52 -07:00
|
|
|
foo: isize,
|
2013-08-07 11:52:33 -07:00
|
|
|
}
|
|
|
|
|
2015-01-24 16:36:30 -05:00
|
|
|
#[derive(Copy)]
|
2013-08-07 11:52:33 -07:00
|
|
|
pub enum EnumWithVariants {
|
|
|
|
EnumVariant,
|
2015-03-25 17:06:52 -07:00
|
|
|
EnumVariantArg(isize)
|
2013-08-07 11:52:33 -07:00
|
|
|
}
|