7 lines
137 B
Rust
7 lines
137 B
Rust
|
fn main() {
|
||
|
let x = @{mutable a: @10, b: @20};
|
||
|
alt x {
|
||
|
@{a, b} { assert *a == 10; (*x).a = @30; assert *a == 10; }
|
||
|
}
|
||
|
}
|