]> git.lizzy.rs Git - rust.git/blob - src/test/ui/linkage2.rs
Auto merge of #60065 - QuietMisdreavus:async-move-doctests, r=ollie27
[rust.git] / src / test / ui / linkage2.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 // ignore-sgx no weak linkages permitted
5
6 #![feature(linkage)]
7
8 extern {
9     #[linkage = "extern_weak"] static foo: i32;
10     //~^ ERROR: must have type `*const T` or `*mut T`
11 }
12
13 fn main() {
14     println!("{}", unsafe { foo });
15 }