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