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