Closed
Description
Today this code compiles just fine, but it probably shouldn't:
#![feature(thread_local)]
#[thread_local]
static FOO: uint = 3;
fn main() {
let a = &FOO;
spawn(proc() {
println!("{}", a);
});
}
I'm not nominating this because thread_local
is behind a feature gate, just wanted an issue to track it.