Extern statics can be accessed in safe Rust · Issue #35112 · rust-lang/rust
This code crashes: #[no_mangle] pub static X: usize = 0; mod test { extern { pub static X: &'static u32; } } fn main() { println!("{}", X); println!("{}", *test::X); } @ubsan wrote this code on irc...