fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: `extern` block uses type `A`, which is not FFI-safe 2 --> $DIR/issue-14309.rs:30:15 3 | 4LL | fn foo(x: A); 5 | ^ not FFI-safe 6 | 7 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 8 = note: this struct has unspecified layout 9note: the type is defined here 10 --> $DIR/issue-14309.rs:4:1 11 | 12LL | struct A { 13 | ^^^^^^^^ 14note: the lint level is defined here 15 --> $DIR/issue-14309.rs:1:9 16 | 17LL | #![deny(improper_ctypes)] 18 | ^^^^^^^^^^^^^^^ 19 20error: `extern` block uses type `A`, which is not FFI-safe 21 --> $DIR/issue-14309.rs:31:15 22 | 23LL | fn bar(x: B); 24 | ^ not FFI-safe 25 | 26 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 27 = note: this struct has unspecified layout 28note: the type is defined here 29 --> $DIR/issue-14309.rs:4:1 30 | 31LL | struct A { 32 | ^^^^^^^^ 33 34error: `extern` block uses type `A`, which is not FFI-safe 35 --> $DIR/issue-14309.rs:33:15 36 | 37LL | fn qux(x: A2); 38 | ^^ not FFI-safe 39 | 40 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 41 = note: this struct has unspecified layout 42note: the type is defined here 43 --> $DIR/issue-14309.rs:4:1 44 | 45LL | struct A { 46 | ^^^^^^^^ 47 48error: `extern` block uses type `A`, which is not FFI-safe 49 --> $DIR/issue-14309.rs:34:16 50 | 51LL | fn quux(x: B2); 52 | ^^ not FFI-safe 53 | 54 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 55 = note: this struct has unspecified layout 56note: the type is defined here 57 --> $DIR/issue-14309.rs:4:1 58 | 59LL | struct A { 60 | ^^^^^^^^ 61 62error: `extern` block uses type `A`, which is not FFI-safe 63 --> $DIR/issue-14309.rs:36:16 64 | 65LL | fn fred(x: D); 66 | ^ not FFI-safe 67 | 68 = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct 69 = note: this struct has unspecified layout 70note: the type is defined here 71 --> $DIR/issue-14309.rs:4:1 72 | 73LL | struct A { 74 | ^^^^^^^^ 75 76error: aborting due to 5 previous errors 77