rust/tests/ui/statics/issue-14227.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
205 B
Rust
Raw Normal View History

// revisions: mir thir
// [thir]compile-flags: -Z thir-unsafeck
2020-09-01 16:12:52 -05:00
extern "C" {
2018-10-03 05:34:10 -05:00
pub static symbol: u32;
}
2018-10-03 05:34:10 -05:00
static CRASH: u32 = symbol;
2019-08-03 12:34:21 -05:00
//~^ ERROR use of extern static is unsafe and requires
fn main() {}