rust/src/test/run-pass/readalias.rs
2010-06-23 21:03:09 -07:00

13 lines
159 B
Rust

// -*- rust -*-
type point = rec(int x, int y, int z);
fn f(&point p) {
check (p.z == 12);
}
fn main() {
let point x = rec(x=10, y=11, z=12);
f(x);
}