Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton

This commit is contained in:
Manish Goregaokar 2015-01-27 22:24:02 +05:30
commit 51ff9e82ec
99 changed files with 136 additions and 289 deletions

View file

@ -9,15 +9,13 @@
// except according to those terms.
#[repr(packed)]
#[derive(PartialEq, Show)]
#[derive(Copy, PartialEq, Show)]
struct Foo {
a: i8,
b: i16,
c: i8
}
impl Copy for Foo {}
#[link(name = "test", kind = "static")]
extern {
fn foo(f: Foo) -> Foo;