rust/tests/ui/extern/issue-16250.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
649 B
Plaintext
Raw Normal View History

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