]> git.proxmox.com Git - rustc.git/blame - tests/ui/issues/issue-16250.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / issues / issue-16250.stderr
CommitLineData
e1599b0c 1error: `extern` block uses type `Foo`, which is not FFI-safe
0731742a 2 --> $DIR/issue-16250.rs:6:20
8faf50e0 3 |
532ac7d7 4LL | 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 9note: the type is defined here
0731742a 10 --> $DIR/issue-16250.rs:3:1
8faf50e0
XL
11 |
12LL | pub struct Foo;
064997fb 13 | ^^^^^^^^^^^^^^
2b03887a
FG
14note: the lint level is defined here
15 --> $DIR/issue-16250.rs:1:9
16 |
17LL | #![deny(warnings)]
18 | ^^^^^^^^
19 = note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]`
8faf50e0 20
4b012472 21error: aborting due to 1 previous error
8faf50e0 22