]> git.proxmox.com Git - rustc.git/blob - tests/ui/rfcs/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr
New upstream version 1.72.1+dfsg1
[rustc.git] / tests / ui / rfcs / rfc-2008-non-exhaustive / improper_ctypes / extern_crate_improper.stderr
1 error: `extern` block uses type `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: this enum is non-exhaustive
8 note: the lint level is defined here
9 --> $DIR/extern_crate_improper.rs:2:9
10 |
11 LL | #![deny(improper_ctypes)]
12 | ^^^^^^^^^^^^^^^
13
14 error: `extern` block uses type `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 `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 `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 `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