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