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