mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00

Revert <https://github.com/rust-lang/rust/pull/131669> due to ICE reports: - <https://github.com/rust-lang/rust/issues/134059> (real-world) - <https://github.com/rust-lang/rust/issues/134060> (fuzzing) The changes can be re-landed with those cases addressed. This reverts commit703bb98230
, reversing changes made tof415c07494
.
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() {}
|