]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-ctypes-enum.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / lint / lint-ctypes-enum.stderr
1 error: `extern` block uses type `U`, which is not FFI-safe
2   --> $DIR/lint-ctypes-enum.rs:60:13
3    |
4 LL |    fn uf(x: U);
5    |             ^ not FFI-safe
6    |
7    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
8    = note: enum has no representation hint
9 note: the type is defined here
10   --> $DIR/lint-ctypes-enum.rs:9:1
11    |
12 LL | enum U {
13    | ^^^^^^
14 note: the lint level is defined here
15   --> $DIR/lint-ctypes-enum.rs:3:9
16    |
17 LL | #![deny(improper_ctypes)]
18    |         ^^^^^^^^^^^^^^^
19
20 error: `extern` block uses type `B`, which is not FFI-safe
21   --> $DIR/lint-ctypes-enum.rs:61:13
22    |
23 LL |    fn bf(x: B);
24    |             ^ not FFI-safe
25    |
26    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
27    = note: enum has no representation hint
28 note: the type is defined here
29   --> $DIR/lint-ctypes-enum.rs:12:1
30    |
31 LL | enum B {
32    | ^^^^^^
33
34 error: `extern` block uses type `T`, which is not FFI-safe
35   --> $DIR/lint-ctypes-enum.rs:62:13
36    |
37 LL |    fn tf(x: T);
38    |             ^ not FFI-safe
39    |
40    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
41    = note: enum has no representation hint
42 note: the type is defined here
43   --> $DIR/lint-ctypes-enum.rs:16:1
44    |
45 LL | enum T {
46    | ^^^^^^
47
48 error: `extern` block uses type `u128`, which is not FFI-safe
49   --> $DIR/lint-ctypes-enum.rs:74:23
50    |
51 LL |    fn nonzero_u128(x: Option<num::NonZeroU128>);
52    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
53    |
54    = note: 128-bit integers don't currently have a known stable ABI
55
56 error: `extern` block uses type `i128`, which is not FFI-safe
57   --> $DIR/lint-ctypes-enum.rs:81:23
58    |
59 LL |    fn nonzero_i128(x: Option<num::NonZeroI128>);
60    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
61    |
62    = note: 128-bit integers don't currently have a known stable ABI
63
64 error: `extern` block uses type `Option<TransparentUnion<NonZeroU8>>`, which is not FFI-safe
65   --> $DIR/lint-ctypes-enum.rs:86:28
66    |
67 LL |    fn transparent_union(x: Option<TransparentUnion<num::NonZeroU8>>);
68    |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
69    |
70    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
71    = note: enum has no representation hint
72
73 error: `extern` block uses type `Option<Rust<NonZeroU8>>`, which is not FFI-safe
74   --> $DIR/lint-ctypes-enum.rs:88:20
75    |
76 LL |    fn repr_rust(x: Option<Rust<num::NonZeroU8>>);
77    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
78    |
79    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
80    = note: enum has no representation hint
81
82 error: `extern` block uses type `Result<(), NonZeroI32>`, which is not FFI-safe
83   --> $DIR/lint-ctypes-enum.rs:89:20
84    |
85 LL |    fn no_result(x: Result<(), num::NonZeroI32>);
86    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
87    |
88    = help: consider adding a `#[repr(C)]`, `#[repr(transparent)]`, or integer `#[repr(...)]` attribute to this enum
89    = note: enum has no representation hint
90
91 error: aborting due to 8 previous errors
92