2022-02-14 10:10:22 -06:00
|
|
|
error: `extern` block uses type `A`, which is not FFI-safe
|
2021-07-26 15:01:16 -05:00
|
|
|
--> $DIR/opaque-ty-ffi-unsafe.rs:11:17
|
|
|
|
|
|
|
|
|
LL | pub fn a(_: A);
|
|
|
|
| ^ not FFI-safe
|
|
|
|
|
|
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
|
|
|
|
|