Closed
Description
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.
https://botbot.me/mozilla/rust-internals/2016-07-28/?msg=70411962&page=5