| 1 |
error: `extern` fn uses type `MyPhantom<i32>`, which is not FFI-safe |
| 2 |
--> tests/ui/ffi.rs:8:39 |
| 3 |
| |
| 4 |
8 | pub extern "C" fn extern_fn(_phantom: MyPhantom<i32>) {} |
| 5 |
| ^^^^^^^^^^^^^^ not FFI-safe |
| 6 |
| |
| 7 |
note: the lint level is defined here |
| 8 |
--> tests/ui/ffi.rs:1:9 |
| 9 |
| |
| 10 |
1 | #![deny(improper_ctypes_definitions)] |
| 11 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 |
= help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum |
| 13 |
= note: enum has no representation hint |
| 14 |
note: the type is defined here |
| 15 |
--> tests/ui/ffi.rs:5:1 |
| 16 |
| |
| 17 |
5 | #[phantom] |
| 18 |
| ^^^^^^^^^^ |
| 19 |
= note: this error originates in the attribute macro `phantom` (in Nightly builds, run with -Z macro-backtrace for more info) |