blob: 1cccb3df32509eb80d01297c0fba2b20e5a78fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// -*- rust -*-
type point = rec(int x, int y, mutable int z);
fn f(&mutable point p) { p.z = 13; }
fn main() {
let point x = rec(x=10, y=11, mutable z=12);
f(x);
assert (x.z == 13);
}
|