1 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
2 --> $DIR/issue-14309.rs:40:15
4 LL | fn foo(x: A); //~ ERROR type `A` which is not FFI-safe
7 note: lint level defined here
8 --> $DIR/issue-14309.rs:11:9
10 LL | #![deny(improper_ctypes)]
12 = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
13 note: type defined here
14 --> $DIR/issue-14309.rs:14:1
21 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
22 --> $DIR/issue-14309.rs:41:15
24 LL | fn bar(x: B); //~ ERROR type `A`
27 = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
28 note: type defined here
29 --> $DIR/issue-14309.rs:14:1
36 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
37 --> $DIR/issue-14309.rs:43:15
39 LL | fn qux(x: A2); //~ ERROR type `A`
42 = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
43 note: type defined here
44 --> $DIR/issue-14309.rs:14:1
51 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
52 --> $DIR/issue-14309.rs:44:16
54 LL | fn quux(x: B2); //~ ERROR type `A`
57 = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
58 note: type defined here
59 --> $DIR/issue-14309.rs:14:1
66 error: `extern` block uses type `A` which is not FFI-safe: this struct has unspecified layout
67 --> $DIR/issue-14309.rs:46:16
69 LL | fn fred(x: D); //~ ERROR type `A`
72 = help: consider adding a #[repr(C)] or #[repr(transparent)] attribute to this struct
73 note: type defined here
74 --> $DIR/issue-14309.rs:14:1
81 error: aborting due to 5 previous errors