2012-05-23 22:53:49 -05:00
|
|
|
fn test() {
|
2015-01-08 04:54:35 -06:00
|
|
|
let v: isize;
|
2021-04-12 17:29:09 -05:00
|
|
|
//~^ HELP consider making this binding mutable
|
2019-04-22 02:40:08 -05:00
|
|
|
//~| 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() {
|
|
|
|
}
|