0d3811e275
doesn't warn about pattern bindings yet though
11 lines
197 B
Rust
11 lines
197 B
Rust
fn test() {
|
|
let v: int;
|
|
v = 1; //! NOTE prior assignment occurs here
|
|
#debug["v=%d", v];
|
|
v = 2; //! ERROR re-assignment of immutable variable
|
|
#debug["v=%d", v];
|
|
}
|
|
|
|
fn main() {
|
|
}
|