Sign in
fuchsia
/
third_party
/
rust
/
846ea58cd5ae1c8d72e55dd6cf1ee35ffbca3d63
/
.
/
src
/
test
/
ui
/
nll
/
constant-thread-locals-issue-47053.rs
blob: 4dd01410c5e4db2fd39af58faa29d22ededcaf04 [
file
] [
log
] [
blame
]
// Regression test for issue #47053
#![
feature
(
nll
)]
#![
feature
(
thread_local
)]
#[
thread_local
]
static
FOO
:
isize
=
5
;
fn
main
()
{
FOO
=
6
;
//~ ERROR cannot assign to immutable static item `FOO` [E0594]
}