14 lines
210 B
Rust
14 lines
210 B
Rust
// -*- rust -*-
|
|
|
|
type point = rec(int x, int y, mutable int z);
|
|
|
|
impure fn f(& mutable point p) {
|
|
p.z = 13;
|
|
}
|
|
|
|
impure fn main() {
|
|
let point x = rec(x=10, y=11, mutable z=12);
|
|
f(x);
|
|
check (x.z == 13);
|
|
}
|