Sign in
third-party-mirror
/
cbindgen
/
9a26cd0114a633fa05ece30bd3f1b13149f496f2
/
.
/
cbindgen-0.24.5
/
tests
/
rust
/
constant_user_defined_type.rs
blob: cffe81716693ccbfdd15628106608e3527c78a88 [
file
] [
log
] [
blame
]
#[
repr
(
C
)]
pub
struct
S
{
field
:
u8
,
}
/// cbindgen:enum-class=false
#[
repr
(
C
)]
pub
enum
E
{
V
,
}
use
E
::*;
pub
type
A
=
u8
;
pub
const
C1
:
S
=
S
{
field
:
0
};
pub
const
C2
:
E
=
V
;
pub
const
C3
:
A
=
0
;