summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/constant-thread-locals-issue-47053.rs
blob: dde0ef7a5bb832fa55c00d8880e155ae0870bb6c (plain)
1
2
3
4
5
6
7
8
9
10
// Regression test for issue #47053

#![feature(thread_local)]

#[thread_local]
static FOO: isize = 5;

fn main() {
    FOO = 6; //~ ERROR cannot assign to immutable static item `FOO` [E0594]
}