2018-06-06 14:31:43 -05:00
|
|
|
#[repr]
|
2019-01-01 17:21:05 -06:00
|
|
|
//~^ ERROR attribute must be of the form
|
2018-06-06 14:31:43 -05:00
|
|
|
struct _A {}
|
|
|
|
|
|
|
|
#[repr = "B"]
|
2019-01-01 17:21:05 -06:00
|
|
|
//~^ ERROR attribute must be of the form
|
2018-06-06 14:31:43 -05:00
|
|
|
struct _B {}
|
|
|
|
|
|
|
|
#[repr = "C"]
|
2019-01-01 17:21:05 -06:00
|
|
|
//~^ ERROR attribute must be of the form
|
2018-06-06 14:31:43 -05:00
|
|
|
struct _C {}
|
|
|
|
|
|
|
|
#[repr(C)]
|
|
|
|
struct _D {}
|
|
|
|
|
|
|
|
fn main() {}
|