/src/test/run-pass/move-2.rs

http://github.com/jruderman/rust · Rust · 3 lines · 1 code · 2 blank · 0 comment · 1 complexity · ea6583627ffbfd313ad175f07d278b1e MD5 · raw file

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