mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
11 lines
194 B
Rust
11 lines
194 B
Rust
// 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]
|
|
}
|