blob: ba9e18bcce5c75142c8ee88b32a9d937497da541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: `extern` block uses type `A`, which is not FFI-safe
--> $DIR/opaque-ty-ffi-unsafe.rs:11:24
|
LL | pub(crate) fn a(_: A);
| ^ not FFI-safe
|
= note: opaque types have no C equivalent
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
|