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

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

9 lines
188 B
Rust
Raw Normal View History

2020-09-01 17:12:52 -04:00
extern "C" {
2018-10-03 12:34:10 +02:00
pub static symbol: u32;
}
2018-10-03 12:34:10 +02:00
static CRASH: u32 = symbol;
2019-08-03 19:34:21 +02:00
//~^ ERROR use of extern static is unsafe and requires
//~| ERROR cannot access extern static `symbol`
fn main() {}