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