summaryrefslogtreecommitdiffstats
path: root/tests/ui/statics/issue-14227.rs
blob: 5f866ec906144d59cdba44a9c8663abdbad607c1 (plain)
1
2
3
4
5
6
7
8
9
10
// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck

extern "C" {
    pub static symbol: u32;
}
static CRASH: u32 = symbol;
//~^ ERROR use of extern static is unsafe and requires

fn main() {}