summary refs log tree commit diff
path: root/src/test/run-pass/alt-implicit-copy.rs
blob: 43de34e87a83e98622e06fbf9cc46b03ad70466b (plain)
1
2
3
4
5
6
fn main() {
    let x = @{mut a: @10, b: @20};
    alt x {
      @{a, b} { assert *a == 10; (*x).a = @30; assert *a == 10; }
    }
}