Sign in
third-party-mirror
/
cbindgen
/
1f32778f219c6898ee4e83e77a24211565ea817d
/
.
/
cbindgen-0.27.0
/
tests
/
rust
/
enum_self.rs
blob: ffdc9702fc1cd937e1cb3c61c4ca66d614cf0a51 [
file
] [
log
] [
blame
]
#[
repr
(
C
)]
pub
struct
Foo
<
T
>
{
something
:
*
const
i32
,
phantom
:
std
::
marker
::
PhantomData
<
T
>,
}
#[
repr
(
u8
)]
pub
enum
Bar
{
Min
(
Foo
<
Self
>),
Max
(
Foo
<
Self
>),
Other
,
}
#[
no_mangle
]
pub
extern
"C"
fn
root
(
b
:
Bar
)
{}