rust/src/test/run-pass/unique-decl-move.rs

5 lines
73 B
Rust

fn main() {
let i = ~100;
let j = move i;
assert *j == 100;
}