blob: f3686e82b05a4885049d2e7d45871e4681f4c9d3 [file] [log] [blame]
error: `extern` block uses type `Foo` which is not FFI-safe: this struct has unspecified layout
--> $DIR/issue-16250.rs:6:20
|
LL | pub fn foo(x: (Foo));
| ^^^
|
note: lint level defined here
--> $DIR/issue-16250.rs:1:9
|
LL | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]`
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
note: type defined here
--> $DIR/issue-16250.rs:3:1
|
LL | pub struct Foo;
| ^^^^^^^^^^^^^^^
error: aborting due to previous error