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