2012-05-23 22:53:49 -05:00
|
|
|
fn test() {
|
2012-05-19 07:52:01 -05:00
|
|
|
let v: int;
|
|
|
|
v = 2; //! NOTE prior assignment occurs here
|
|
|
|
v += 1; //! ERROR re-assignment of immutable variable
|
2012-05-23 22:53:49 -05:00
|
|
|
copy v;
|
2012-05-19 07:52:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|