6d86969260
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
19 lines
356 B
Rust
19 lines
356 B
Rust
fn test1() {
|
|
let v: int;
|
|
let mut w: int;
|
|
v = 1; //~ NOTE prior assignment occurs here
|
|
w = 2;
|
|
v <-> w; //~ ERROR re-assignment of immutable variable
|
|
}
|
|
|
|
fn test2() {
|
|
let v: int;
|
|
let mut w: int;
|
|
v = 1; //~ NOTE prior assignment occurs here
|
|
w = 2;
|
|
w <-> v; //~ ERROR re-assignment of immutable variable
|
|
}
|
|
|
|
fn main() {
|
|
}
|