Sign in
third-party-mirror
/
cbindgen
/
9a26cd0114a633fa05ece30bd3f1b13149f496f2
/
.
/
cbindgen-0.24.5
/
tests
/
rust
/
union_self.rs
blob: 77b0b0f45c0f1881038b4dac9111f0ef7a140e03 [
file
] [
log
] [
blame
]
#[
repr
(
C
)]
pub
struct
Foo
<
T
>
{
something
:
*
const
i32
,
phantom
:
std
::
marker
::
PhantomData
<
T
>,
}
#[
repr
(
C
)]
pub
union
Bar
{
something
:
i32
,
subexpressions
:
Foo
<
Self
>,
}
#[
no_mangle
]
pub
extern
"C"
fn
root
(
b
:
Bar
)
{}