mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
18 lines
396 B
Rust
18 lines
396 B
Rust
// FIXME https://github.com/rust-lang/rust/issues/59774
|
|
|
|
// check-fail
|
|
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
|
|
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
|
|
|
|
#![feature(linkage)]
|
|
|
|
extern "C" {
|
|
#[linkage = "foo"]
|
|
static foo: *const i32;
|
|
//~^ ERROR: invalid linkage specified
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", unsafe { foo });
|
|
}
|