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.
Today this code compiles just fine, but it probably shouldn't:
I'm not nominating this because
thread_localis behind a feature gate, just wanted an issue to track it.