Sign in
◑
Theme
gdch-oss
/
third_party
/
3b13c50b4e5d5bb7ffbb449556c76f48d0e5704c
/
.
/
tests
/
rust
/
generic_pointer.rs
blob: 828bdc1027266cba38e00bf3e1b9e048d994f531 [
file
]
#[
repr
(
C
)]
pub
struct
Foo
<
T
>
{
a
:
T
,
}
pub
type
Boo
=
Foo
<*
mut
u8
>;
#[
no_mangle
]
pub
extern
"C"
fn
root
(
x
:
Boo
,
)
{
}
#[
no_mangle
]
pub
extern
"C"
fn
my_function
(
x
:
Foo
<[
u8
;
4
]>)
{}