Sign in
fuchsia
/
third_party
/
rust
/
5670d048c0f88af9976b5505c7853b23dd06770d
/
.
/
src
/
test
/
run-make-fulldeps
/
static-extern-type
/
use-foo.rs
blob: 932b5b5944bc72d732f530e50fa268986e7400ad [
file
] [
log
] [
blame
]
#![
feature
(
extern_types
)]
extern
"C"
{
type
Foo
;
static
FOO
:
Foo
;
fn
bar
(
foo
:
*
const
Foo
)
->
u8
;
}
fn
main
()
{
unsafe
{
let
foo
=
&
FOO
;
assert_eq
!(
bar
(
foo
),
42
);
}
}