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