mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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]
|
|
}
|