Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
lint
/
extern-C-fnptr-lints-slices.rs
blob: 0c35eb37a489099e153fa12c8157d3715646e7b5 [
file
] [
log
] [
blame
] [
edit
]
#[
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
()
{}