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