rust/tests/ui/extern/issue-28324.rs

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

12 lines
232 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" {
2016-08-28 18:21:04 -05:00
static error_message_count: u32;
}
pub static BAZ: u32 = *&error_message_count;
2019-08-03 12:34:21 -05:00
//~^ ERROR use of extern static is unsafe and requires
2016-08-28 18:21:04 -05:00
fn main() {}