Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
liveness
/
liveness-assign
/
liveness-assign-imm-local-in-loop.rs
blob: c9e1851b9a9803b548e43aadd9e5b3ebdded8301 [
file
] [
log
] [
blame
]
fn
test
()
{
let
v
:
isize
;
//~^ HELP make this binding mutable
//~| SUGGESTION mut v
loop
{
v
=
1
;
//~ ERROR cannot assign twice to immutable variable `v`
//~| NOTE cannot assign twice to immutable variable
}
}
fn
main
()
{
}