mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
13 lines
281 B
Rust
13 lines
281 B
Rust
// Regression test for the ICE described in #87496.
|
|
|
|
//@ check-pass
|
|
|
|
#[repr(transparent)]
|
|
struct TransparentCustomZst(());
|
|
extern "C" {
|
|
fn good17(p: TransparentCustomZst);
|
|
//~^ WARNING: `extern` block uses type `TransparentCustomZst`, which is not FFI-safe
|
|
}
|
|
|
|
fn main() {}
|