fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: `extern` block uses type `Foo`, which is not FFI-safe 2 --> $DIR/issue-16250.rs:6:20 3 | 4LL | pub fn foo(x: (Foo)); 5 | ^^^ not FFI-safe 6 | 7note: lint level defined here 8 --> $DIR/issue-16250.rs:1:9 9 | 10LL | #![deny(warnings)] 11 | ^^^^^^^^ 12 = note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]` 13 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 14 = note: this struct has unspecified layout 15note: type defined here 16 --> $DIR/issue-16250.rs:3:1 17 | 18LL | pub struct Foo; 19 | ^^^^^^^^^^^^^^^ 20 21error: aborting due to previous error 22