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 21:12:52 +00:00
extern "C" {
2018-10-03 10:34:10 +00:00
pub static symbol: u32;
}
2018-10-03 10:34:10 +00:00
static CRASH: u32 = symbol;
2019-08-03 17:34:21 +00:00
//~^ ERROR use of extern static is unsafe and requires
fn main() {}