2022-02-15 00:10:22 +08:00
|
|
|
error: `extern` block uses type `A`, which is not FFI-safe
|
2023-03-07 20:03:11 +08:00
|
|
|
--> $DIR/opaque-ty-ffi-unsafe.rs:11:24
|
2021-07-27 04:01:16 +08:00
|
|
|
|
|
2023-03-07 20:03:11 +08:00
|
|
|
LL | pub(crate) fn a(_: A);
|
|
|
|
| ^ not FFI-safe
|
2021-07-27 04:01:16 +08:00
|
|
|
|
|
2022-09-18 23:55:36 +08:00
|
|
|
= note: opaque types have no C equivalent
|
2021-07-27 04:01:16 +08:00
|
|
|
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
|
|
|
|
|