blob: fef5e3eb144db6598086ef52c35e903f213b66f1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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()) };
}
|