2024-01-06 04:22:37 -06:00
|
|
|
#[repr(C)]
|
2023-08-23 07:53:47 -05:00
|
|
|
struct Foo {
|
|
|
|
foo: u8,
|
|
|
|
_: union { //~ ERROR unnamed fields are not yet fully implemented [E0658]
|
|
|
|
//~^ ERROR unnamed fields are not yet fully implemented [E0658]
|
|
|
|
bar: u8,
|
|
|
|
baz: u16
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-06 04:22:37 -06:00
|
|
|
#[repr(C)]
|
2023-08-23 07:53:47 -05:00
|
|
|
union Bar {
|
|
|
|
foobar: u8,
|
|
|
|
_: struct { //~ ERROR unnamed fields are not yet fully implemented [E0658]
|
|
|
|
//~^ ERROR unnamed fields are not yet fully implemented [E0658]
|
|
|
|
foobaz: u8,
|
|
|
|
barbaz: u16
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-06 04:22:37 -06:00
|
|
|
#[repr(C)]
|
2023-08-23 07:53:47 -05:00
|
|
|
struct S;
|
2024-01-06 04:22:37 -06:00
|
|
|
|
|
|
|
#[repr(C)]
|
2023-08-23 07:53:47 -05:00
|
|
|
struct Baz {
|
|
|
|
_: S //~ ERROR unnamed fields are not yet fully implemented [E0658]
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main(){}
|