1 error: `extern` block uses type `NonExhaustiveEnum`, which is not FFI-safe
2 --> $DIR/extern_crate_improper.rs:12:35
4 LL | pub fn non_exhaustive_enum(_: NonExhaustiveEnum);
5 | ^^^^^^^^^^^^^^^^^ not FFI-safe
7 = note: this enum is non-exhaustive
8 note: the lint level is defined here
9 --> $DIR/extern_crate_improper.rs:2:9
11 LL | #![deny(improper_ctypes)]
14 error: `extern` block uses type `NormalStruct`, which is not FFI-safe
15 --> $DIR/extern_crate_improper.rs:14:44
17 LL | pub fn non_exhaustive_normal_struct(_: NormalStruct);
18 | ^^^^^^^^^^^^ not FFI-safe
20 = note: this struct is non-exhaustive
22 error: `extern` block uses type `UnitStruct`, which is not FFI-safe
23 --> $DIR/extern_crate_improper.rs:16:42
25 LL | pub fn non_exhaustive_unit_struct(_: UnitStruct);
26 | ^^^^^^^^^^ not FFI-safe
28 = note: this struct is non-exhaustive
30 error: `extern` block uses type `TupleStruct`, which is not FFI-safe
31 --> $DIR/extern_crate_improper.rs:18:43
33 LL | pub fn non_exhaustive_tuple_struct(_: TupleStruct);
34 | ^^^^^^^^^^^ not FFI-safe
36 = note: this struct is non-exhaustive
38 error: `extern` block uses type `NonExhaustiveVariants`, which is not FFI-safe
39 --> $DIR/extern_crate_improper.rs:20:38
41 LL | pub fn non_exhaustive_variant(_: NonExhaustiveVariants);
42 | ^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
44 = note: this enum has non-exhaustive variants
46 error: aborting due to 5 previous errors