Sign in
◑
Theme
gdch-oss
/
third_party
/
ba02367253bcffb6f4dcfe4bc27005e9cae78edd
/
.
/
tests
/
rust
/
prefixed_struct_literal.rs
blob: 5a92ff0bca81121342426051a64d66a175ec11be [
file
]
#[
repr
(
C
)]
struct
Foo
{
a
:
i32
,
b
:
u32
,
}
impl
Foo
{
const
FOO
:
Foo
=
Foo
{
a
:
42
,
b
:
47
,
};
}
const
BAR
:
Foo
=
Foo
{
a
:
42
,
b
:
1337
,
};
#[
no_mangle
]
pub
extern
"C"
fn
root
(
x
:
Foo
)
{
}