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

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

10 lines
216 B
Rust
Raw Normal View History

2020-09-01 21:12:52 +00:00
extern "C" {
2016-08-28 23:21:04 +00:00
static error_message_count: u32;
}
pub static BAZ: u32 = *&error_message_count;
2019-08-03 17:34:21 +00:00
//~^ ERROR use of extern static is unsafe and requires
//~| ERROR could not evaluate static initializer
2016-08-28 23:21:04 +00:00
fn main() {}