blob: 8963e32717e2295a7b6e0f1a2e833ba5333c9e5f [file] [log] [blame]
fn test() {
let b = Box::new(1); //~ NOTE first assignment
//~| HELP make this binding mutable
//~| SUGGESTION mut b
drop(b);
b = Box::new(2); //~ ERROR cannot assign twice to immutable variable `b`
//~| NOTE cannot assign twice to immutable
drop(b);
}
fn main() {
}