]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/constant-thread-locals-issue-47053.rs
Rollup merge of #103146 - joboet:cleanup_pthread_condvar, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / constant-thread-locals-issue-47053.rs
1 // Regression test for issue #47053
2
3 #![feature(thread_local)]
4
5 #[thread_local]
6 static FOO: isize = 5;
7
8 fn main() {
9     FOO = 6; //~ ERROR cannot assign to immutable static item `FOO` [E0594]
10 }