Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
nll
/
constant-thread-locals-issue-47053.rs
blob: dde0ef7a5bb832fa55c00d8880e155ae0870bb6c [
file
] [
log
] [
blame
]
// 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]
}