1 error: `extern` block uses type `U`, which is not FFI-safe
2 --> $DIR/lint-ctypes-enum.rs:60:13
7 note: the lint level is defined here
8 --> $DIR/lint-ctypes-enum.rs:3:9
10 LL | #![deny(improper_ctypes)]
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 --> $DIR/lint-ctypes-enum.rs:9:1
22 error: `extern` block uses type `B`, which is not FFI-safe
23 --> $DIR/lint-ctypes-enum.rs:61:13
28 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
29 = note: enum has no representation hint
30 note: the type is defined here
31 --> $DIR/lint-ctypes-enum.rs:12:1
39 error: `extern` block uses type `T`, which is not FFI-safe
40 --> $DIR/lint-ctypes-enum.rs:62:13
45 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
46 = note: enum has no representation hint
47 note: the type is defined here
48 --> $DIR/lint-ctypes-enum.rs:16:1
57 error: `extern` block uses type `Option<Unique<u8>>`, which is not FFI-safe
58 --> $DIR/lint-ctypes-enum.rs:69:17
60 LL | fn unique(x: Option<std::ptr::Unique<u8>>);
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
63 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
64 = note: enum has no representation hint
66 error: `extern` block uses type `u128`, which is not FFI-safe
67 --> $DIR/lint-ctypes-enum.rs:75:23
69 LL | fn nonzero_u128(x: Option<num::NonZeroU128>);
70 | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
72 = note: 128-bit integers don't currently have a known stable ABI
74 error: `extern` block uses type `i128`, which is not FFI-safe
75 --> $DIR/lint-ctypes-enum.rs:82:23
77 LL | fn nonzero_i128(x: Option<num::NonZeroI128>);
78 | ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
80 = note: 128-bit integers don't currently have a known stable ABI
82 error: `extern` block uses type `Option<TransparentUnion<NonZeroU8>>`, which is not FFI-safe
83 --> $DIR/lint-ctypes-enum.rs:87:28
85 LL | fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
88 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
89 = note: enum has no representation hint
91 error: `extern` block uses type `Option<Rust<NonZeroU8>>`, which is not FFI-safe
92 --> $DIR/lint-ctypes-enum.rs:89:20
94 LL | fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
97 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
98 = note: enum has no representation hint
100 error: `extern` block uses type `Result<(), NonZeroI32>`, which is not FFI-safe
101 --> $DIR/lint-ctypes-enum.rs:90:20
103 LL | fn no_result(x: Result<(), num::NonZeroI32>);
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
106 = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
107 = note: enum has no representation hint
109 error: aborting due to 9 previous errors