mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
11 lines
260 B
Rust
11 lines
260 B
Rust
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()) };
|
|
}
|