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