rust/src/test/run-pass/alt-implicit-copy.rs
2012-08-06 15:36:30 -07:00

7 lines
138 B
Rust

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