]> git.lizzy.rs Git - rust.git/blob - src/test/ui/statics/issue-14227.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / statics / issue-14227.rs
1 // revisions: mir thir
2 // [thir]compile-flags: -Z thir-unsafeck
3
4 extern "C" {
5     pub static symbol: u32;
6 }
7 static CRASH: u32 = symbol;
8 //~^ ERROR use of extern static is unsafe and requires
9
10 fn main() {}