]> git.lizzy.rs Git - rust.git/blob - src/test/ui/linkage3.rs
Auto merge of #60065 - QuietMisdreavus:async-move-doctests, r=ollie27
[rust.git] / src / test / ui / linkage3.rs
1 // FIXME https://github.com/rust-lang/rust/issues/59774
2 // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
3 // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
4
5 #![feature(linkage)]
6
7 extern {
8     #[linkage = "foo"] static foo: *const i32;
9     //~^ ERROR: invalid linkage specified
10 }
11
12 fn main() {
13     println!("{:?}", unsafe { foo });
14 }