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