Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
run-make
/
linker-warning
/
main.rs
blob: fef5e3eb144db6598086ef52c35e903f213b66f1 [
file
] [
log
] [
blame
]
unsafe
extern
"C"
{
#[
cfg
(
only_foo
)]
fn
does_not_exist
(
p
:
*
const
u8
)
->
*
const
foo
::
Foo
;
#[
cfg
(
not
(
only_foo
))]
fn
does_not_exist
(
p
:
*
const
bar
::
Bar
)
->
*
const
foo
::
Foo
;
}
fn
main
()
{
let
_
=
unsafe
{
does_not_exist
(
core
::
ptr
::
null
())
};
}