rust/src/test/run-pass/alt-implicit-copy.rs
Niko Matsakis 013fc92423 remove alias analysis and replace with borrowck
This reverts commit 7ef825bb607c4e934c92bd0b73ecbc4c24f3286b.
2012-06-08 20:39:11 -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; }
}
}