about summary refs log tree commit diff
path: root/tests/ui/linkage-attr/linkage3.rs
blob: 74a6fd6600b8eefc78bedd9c3fc85909a25f4a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-fail

#![feature(linkage)]

extern "C" {
    #[linkage = "foo"]
    static foo: *const i32;
//~^^ ERROR: malformed `linkage` attribute input [E0539]
}

fn main() {
    println!("{:?}", unsafe { foo });
}