rust/src/test/run-pass/move-scalar.rs

8 lines
90 B
Rust

fn main() {
let y: int = 42;
let mut x: int;
x <- y;
assert (x == 42);
}