Sign in
◑
Theme
gdch-oss
/
third_party
/
e216bea632ed973ebecbbdccc4e8b4de934193c8
/
.
/
tests
/
rust
/
struct_self.rs
blob: 9432082502ef583f41ffd784894475d9d87df316 [
file
]
#[
repr
(
C
)]
pub
struct
Foo
<
T
>
{
something
:
*
const
i32
,
phantom
:
std
::
marker
::
PhantomData
<
T
>,
}
#[
repr
(
C
)]
pub
struct
Bar
{
something
:
i32
,
subexpressions
:
Foo
<
Self
>,
}
#[
no_mangle
]
pub
extern
"C"
fn
root
(
b
:
Bar
)
{}