1 #[no_mangle] malloc(_: usize) -> *mut std::ffi::c_void2extern "C" fn malloc(_: usize) -> *mut std::ffi::c_void { 3 //~^ HELP the `malloc` symbol is defined here 4 unreachable!() 5 } 6 main()7fn main() { 8 extern "C" { 9 fn malloc(_: usize) -> *mut std::ffi::c_void; 10 } 11 unsafe { 12 malloc(0); 13 //~^ ERROR found `malloc` symbol definition that clashes with a built-in shim 14 } 15 } 16