mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
14 lines
214 B
Rust
14 lines
214 B
Rust
//@ check-fail
|
|
|
|
#![feature(linkage)]
|
|
|
|
extern "C" {
|
|
#[linkage = "foo"]
|
|
static foo: *const i32;
|
|
//~^^ ERROR: malformed `linkage` attribute input [E0539]
|
|
}
|
|
|
|
fn main() {
|
|
println!("{:?}", unsafe { foo });
|
|
}
|