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 20:01:16 +00:00
|
|
|
|
|
2023-03-07 12:03:11 +00:00
|
|
|
LL | pub(crate) fn a(_: A);
|
|
|
|
| ^ not FFI-safe
|
2021-07-26 20:01:16 +00:00
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= note: opaque types have no C equivalent
|
2021-07-26 20:01:16 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/opaque-ty-ffi-unsafe.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(improper_ctypes)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-07-26 20:01:16 +00:00
|
|
|
|