2012-05-23 20:53:49 -07:00
|
|
|
fn test() {
|
2012-05-19 05:52:01 -07:00
|
|
|
let v: int;
|
|
|
|
loop {
|
2012-06-30 12:23:59 +01:00
|
|
|
v = 1; //~ ERROR re-assignment of immutable variable
|
|
|
|
//~^ NOTE prior assignment occurs here
|
2012-05-23 20:53:49 -07:00
|
|
|
copy v; // just to prevent liveness warnings
|
2012-05-19 05:52:01 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|