rust/src/test/run-pass/move-2.rs
2011-07-27 15:54:33 +02:00

3 lines
75 B
Rust

fn main() { let x = @{x: 1, y: 2, z: 3}; let y <- x; assert (y.y == 2); }