]>
Commit | Line | Data |
---|---|---|
e1599b0c | 1 | error: `extern` block uses type `Foo`, which is not FFI-safe |
0731742a | 2 | --> $DIR/issue-16250.rs:6:20 |
8faf50e0 | 3 | | |
532ac7d7 | 4 | LL | pub fn foo(x: (Foo)); |
e1599b0c | 5 | | ^^^ not FFI-safe |
8faf50e0 | 6 | | |
dc9dc135 | 7 | = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct |
e1599b0c | 8 | = note: this struct has unspecified layout |
74b04a01 | 9 | note: the type is defined here |
0731742a | 10 | --> $DIR/issue-16250.rs:3:1 |
8faf50e0 XL |
11 | | |
12 | LL | pub struct Foo; | |
064997fb | 13 | | ^^^^^^^^^^^^^^ |
2b03887a FG |
14 | note: the lint level is defined here |
15 | --> $DIR/issue-16250.rs:1:9 | |
16 | | | |
17 | LL | #![deny(warnings)] | |
18 | | ^^^^^^^^ | |
19 | = note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]` | |
8faf50e0 | 20 | |
4b012472 | 21 | error: aborting due to 1 previous error |
8faf50e0 | 22 |