Rollup merge of #21602 - japaric:derive-copy, r=alexcrichton
This commit is contained in:
commit
51ff9e82ec
99 changed files with 136 additions and 289 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue