Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
E0594.rs
blob: a8ca2fe61613a5b914f0719cd33b8c2d53a637b4 [
file
] [
log
] [
blame
]
// revisions: ast mir
//[mir]compile-flags: -Z borrowck=mir
static
NUM
:
i32
=
18
;
fn
main
()
{
NUM
=
20
;
//[ast]~ ERROR E0594
//[mir]~^ ERROR cannot assign to immutable static item `NUM`
}