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