mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +00:00
10 lines
217 B
Rust
10 lines
217 B
Rust
#[deny(improper_ctypes_definitions)]
|
|
|
|
// It's an improper ctype (a slice) arg in an extern "C" fnptr.
|
|
|
|
pub type F = extern "C" fn(&[u8]);
|
|
//~^ ERROR: `extern` fn uses type `[u8]`, which is not FFI-safe
|
|
|
|
|
|
fn main() {}
|