blob: d2f32a47122c23a2ad982d58cf6eaa1968cd46f4 [file] [log] [blame] [edit]
fn test() {
let v: isize;
//~^ HELP consider making this binding mutable
//~| SUGGESTION mut
loop {
v = 1; //~ ERROR cannot assign twice to immutable variable `v`
//~| NOTE cannot assign twice to immutable variable
}
}
fn main() {
}