summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2008-non-exhaustive/improper_ctypes/extern_crate_improper.stderr
blob: 43c8e1015e6744324bfa99d7ff0f5b878bb3aa24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
error: `extern` block uses type `NonExhaustiveEnum`, which is not FFI-safe
  --> $DIR/extern_crate_improper.rs:12:35
   |
LL |     pub fn non_exhaustive_enum(_: NonExhaustiveEnum);
   |                                   ^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: this enum is non-exhaustive
note: the lint level is defined here
  --> $DIR/extern_crate_improper.rs:2:9
   |
LL | #![deny(improper_ctypes)]
   |         ^^^^^^^^^^^^^^^

error: `extern` block uses type `NormalStruct`, which is not FFI-safe
  --> $DIR/extern_crate_improper.rs:14:44
   |
LL |     pub fn non_exhaustive_normal_struct(_: NormalStruct);
   |                                            ^^^^^^^^^^^^ not FFI-safe
   |
   = note: this struct is non-exhaustive

error: `extern` block uses type `UnitStruct`, which is not FFI-safe
  --> $DIR/extern_crate_improper.rs:16:42
   |
LL |     pub fn non_exhaustive_unit_struct(_: UnitStruct);
   |                                          ^^^^^^^^^^ not FFI-safe
   |
   = note: this struct is non-exhaustive

error: `extern` block uses type `TupleStruct`, which is not FFI-safe
  --> $DIR/extern_crate_improper.rs:18:43
   |
LL |     pub fn non_exhaustive_tuple_struct(_: TupleStruct);
   |                                           ^^^^^^^^^^^ not FFI-safe
   |
   = note: this struct is non-exhaustive

error: `extern` block uses type `NonExhaustiveVariants`, which is not FFI-safe
  --> $DIR/extern_crate_improper.rs:20:38
   |
LL |     pub fn non_exhaustive_variant(_: NonExhaustiveVariants);
   |                                      ^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
   |
   = note: this enum has non-exhaustive variants

error: aborting due to 5 previous errors