]> git.lizzy.rs Git - rust.git/blob - tests/ui/linkage-attr/linkage3.rs
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / linkage-attr / linkage3.rs
1 // FIXME https://github.com/rust-lang/rust/issues/59774
2
3 // check-fail
4 // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
5 // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
6
7 #![feature(linkage)]
8
9 extern "C" {
10     #[linkage = "foo"]
11     static foo: *const i32;
12 //~^ ERROR: invalid linkage specified
13 }
14
15 fn main() {
16     println!("{:?}", unsafe { foo });
17 }