rust/src/test/ui/warn-ctypes-inhibit.rs

16 lines
234 B
Rust

// run-pass
#![allow(dead_code)]
// compile-flags:-D improper-ctypes
// pretty-expanded FIXME #23616
#![allow(improper_ctypes)]
mod libc {
extern "C" {
pub fn malloc(size: isize) -> *const u8;
}
}
pub fn main() {}