Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 377 Bytes
// FIXME https://github.com/rust-lang/rust/issues/59774
// normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
#![feature(linkage)]
extern {
#[linkage = "foo"] static foo: *const i32;
//~^ ERROR: invalid linkage specified
}
fn main() {
println!("{:?}", unsafe { foo });
}
You can’t perform that action at this time.