2012-05-23 22:53:49 -05:00
|
|
|
fn test() {
|
2012-05-19 07:52:01 -05:00
|
|
|
let v: int;
|
2012-06-30 06:23:59 -05:00
|
|
|
v = 1; //~ NOTE prior assignment occurs here
|
2012-07-30 18:01:07 -05:00
|
|
|
debug!{"v=%d", v};
|
2012-06-30 06:23:59 -05:00
|
|
|
v = 2; //~ ERROR re-assignment of immutable variable
|
2012-07-30 18:01:07 -05:00
|
|
|
debug!{"v=%d", v};
|
2012-05-19 07:52:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|