rust/src/test/ui/issues/issue-14227.rs
2018-12-25 21:08:33 -07:00

11 lines
220 B
Rust

#![allow(safe_extern_statics, warnings)]
extern {
pub static symbol: u32;
}
static CRASH: u32 = symbol;
//~^ ERROR could not evaluate static initializer
//~| tried to read from foreign (extern) static
fn main() {}