2019-09-10 16:29:31 -05:00
|
|
|
error: `extern` block uses type `Foo`, which is not FFI-safe
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-16250.rs:6:20
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | pub fn foo(x: (Foo));
|
2019-09-10 16:29:31 -05:00
|
|
|
| ^^^ not FFI-safe
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-16250.rs:1:9
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(warnings)]
|
|
|
|
| ^^^^^^^^
|
2019-07-16 15:17:38 -05:00
|
|
|
= note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]`
|
2019-05-22 09:31:09 -05:00
|
|
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
|
2019-09-10 16:29:31 -05:00
|
|
|
= note: this struct has unspecified layout
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the type is defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-16250.rs:3:1
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
|
LL | pub struct Foo;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|