]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-14309.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / issue-14309.stderr
1 error: `extern` block uses type `A`, which is not FFI-safe
2   --> $DIR/issue-14309.rs:30:15
3    |
4 LL |     fn foo(x: A);
5    |               ^ not FFI-safe
6    |
7    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
8    = note: this struct has unspecified layout
9 note: the type is defined here
10   --> $DIR/issue-14309.rs:4:1
11    |
12 LL | struct A {
13    | ^^^^^^^^
14 note: the lint level is defined here
15   --> $DIR/issue-14309.rs:1:9
16    |
17 LL | #![deny(improper_ctypes)]
18    |         ^^^^^^^^^^^^^^^
19
20 error: `extern` block uses type `A`, which is not FFI-safe
21   --> $DIR/issue-14309.rs:31:15
22    |
23 LL |     fn bar(x: B);
24    |               ^ not FFI-safe
25    |
26    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
27    = note: this struct has unspecified layout
28 note: the type is defined here
29   --> $DIR/issue-14309.rs:4:1
30    |
31 LL | struct A {
32    | ^^^^^^^^
33
34 error: `extern` block uses type `A`, which is not FFI-safe
35   --> $DIR/issue-14309.rs:33:15
36    |
37 LL |     fn qux(x: A2);
38    |               ^^ not FFI-safe
39    |
40    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
41    = note: this struct has unspecified layout
42 note: the type is defined here
43   --> $DIR/issue-14309.rs:4:1
44    |
45 LL | struct A {
46    | ^^^^^^^^
47
48 error: `extern` block uses type `A`, which is not FFI-safe
49   --> $DIR/issue-14309.rs:34:16
50    |
51 LL |     fn quux(x: B2);
52    |                ^^ not FFI-safe
53    |
54    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
55    = note: this struct has unspecified layout
56 note: the type is defined here
57   --> $DIR/issue-14309.rs:4:1
58    |
59 LL | struct A {
60    | ^^^^^^^^
61
62 error: `extern` block uses type `A`, which is not FFI-safe
63   --> $DIR/issue-14309.rs:36:16
64    |
65 LL |     fn fred(x: D);
66    |                ^ not FFI-safe
67    |
68    = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
69    = note: this struct has unspecified layout
70 note: the type is defined here
71   --> $DIR/issue-14309.rs:4:1
72    |
73 LL | struct A {
74    | ^^^^^^^^
75
76 error: aborting due to 5 previous errors
77