blob: c1c9bf62819af5b6fcb258df381f2a3de3927b3d [file] [log] [blame]
fn test() {
let v: isize;
//~^ HELP make this binding mutable
//~| SUGGESTION mut v
v = 1; //~ NOTE first assignment
println!("v={}", v);
v = 2; //~ ERROR cannot assign twice to immutable variable
//~| NOTE cannot assign twice to immutable
println!("v={}", v);
}
fn main() {
}