mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
16 lines
397 B
Plaintext
16 lines
397 B
Plaintext
error: `extern` block uses type `A`, which is not FFI-safe
|
|
--> $DIR/opaque-ty-ffi-unsafe.rs:11:17
|
|
|
|
|
LL | pub fn a(_: A);
|
|
| ^ not FFI-safe
|
|
|
|
|
= note: opaque types have no C equivalent
|
|
note: the lint level is defined here
|
|
--> $DIR/opaque-ty-ffi-unsafe.rs:2:9
|
|
|
|
|
LL | #![deny(improper_ctypes)]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|