2024-09-21 08:52:50 -07:00
|
|
|
#[deny(improper_ctypes_definitions)]
|
|
|
|
|
|
|
|
|
|
// It's an improper ctype (a slice) arg in an extern "C" fnptr.
|
|
|
|
|
|
|
|
|
|
pub type F = extern "C" fn(&[u8]);
|
2024-12-09 17:31:16 +08:00
|
|
|
//~^ ERROR: `extern` fn uses type `[u8]`, which is not FFI-safe
|
2024-09-21 08:52:50 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
fn main() {}
|