about summary refs log tree commit diff
path: root/tests/ui/statics/issue-14227.rs
blob: 84994f033d1ddc5b5c1e70ef83f1fb4ab8dc2e46 (plain)
1
2
3
4
5
6
7
8
extern "C" {
    pub static symbol: u32;
}
static CRASH: u32 = symbol;
//~^ ERROR use of extern static is unsafe and requires
//~| ERROR cannot access extern static `symbol`

fn main() {}