]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | // FIXME https://github.com/rust-lang/rust/issues/59774 |
dfeec247 | 2 | |
f9f354fc | 3 | // check-fail |
48663c56 XL |
4 | // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> "" |
5 | // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | |
6 | ||
1a4d82fc | 7 | #![feature(linkage)] |
223e47cc | 8 | |
5869c6ff XL |
9 | extern "C" { |
10 | #[linkage = "foo"] | |
11 | static foo: *const i32; | |
12 | //~^ ERROR: invalid linkage specified | |
223e47cc LB |
13 | } |
14 | ||
15 | fn main() { | |
9e0c209e | 16 | println!("{:?}", unsafe { foo }); |
223e47cc | 17 | } |