2012-05-23 22:53:49 -05:00
|
|
|
fn test() {
|
2015-01-08 04:54:35 -06:00
|
|
|
let v: isize;
|
2019-04-22 02:40:08 -05:00
|
|
|
//~^ HELP make this binding mutable
|
|
|
|
//~| SUGGESTION mut v
|
2012-05-19 07:52:01 -05:00
|
|
|
loop {
|
2019-04-22 02:40:08 -05:00
|
|
|
v = 1; //~ ERROR cannot assign twice to immutable variable `v`
|
|
|
|
//~| NOTE cannot assign twice to immutable variable
|
2012-05-19 07:52:01 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|