summary refs log tree commit diff
path: root/src/test/ui/issues/issue-14227.rs
blob: 5de3867f95c224b90f9803b731a9f51b7e1c1acf (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {}