]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-14309.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[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:40:15
3    |
4 LL |     fn foo(x: A); //~ ERROR type `A` which is not FFI-safe
5    |               ^
6    |
7 note: lint level defined here
8   --> $DIR/issue-14309.rs:11: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:14: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:41:15
23    |
24 LL |     fn bar(x: B); //~ ERROR type `A`
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:14: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:43:15
38    |
39 LL |     fn qux(x: A2); //~ ERROR type `A`
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:14: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:44:16
53    |
54 LL |     fn quux(x: B2); //~ ERROR type `A`
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:14: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:46:16
68    |
69 LL |     fn fred(x: D); //~ ERROR type `A`
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:14:1
75    |
76 LL | / struct A {
77 LL | |     x: i32
78 LL | | }
79    | |_^
80
81 error: aborting due to 5 previous errors
82