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() {
}