rust/src/test/run-pass/alt-implicit-copy-unique.rs
2012-06-07 16:46:57 -07:00

7 lines
133 B
Rust

fn main() {
let x = ~{mut a: ~10, b: ~20};
alt x {
~{a, b} { assert *a == 10; (*x).a = ~30; assert *a == 30; }
}
}