2017-11-14 16:45:18 -06:00
|
|
|
#[repr(C)] //~ ERROR: E0517
|
2017-12-10 15:12:25 -06:00
|
|
|
type Foo = u8;
|
2016-08-25 17:14:20 -05:00
|
|
|
|
2017-11-14 16:45:18 -06:00
|
|
|
#[repr(packed)] //~ ERROR: E0517
|
2017-12-10 15:12:25 -06:00
|
|
|
enum Foo2 {Bar, Baz}
|
2016-08-25 17:14:20 -05:00
|
|
|
|
2017-11-14 16:45:18 -06:00
|
|
|
#[repr(u8)] //~ ERROR: E0517
|
2017-12-10 15:12:25 -06:00
|
|
|
struct Foo3 {bar: bool, baz: bool}
|
2016-08-25 17:14:20 -05:00
|
|
|
|
2017-11-14 16:45:18 -06:00
|
|
|
#[repr(C)] //~ ERROR: E0517
|
2017-12-10 15:12:25 -06:00
|
|
|
impl Foo3 {
|
2016-08-25 17:14:20 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|