]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/constant-thread-locals-issue-47053.rs
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[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 }