2010-06-23 23:03:09 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
// -*- rust -*-
|
2010-06-23 23:03:09 -05:00
|
|
|
type point = rec(int x, int y, int z);
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn f(&point p) { assert (p.z == 12); }
|
2010-06-23 23:03:09 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { let point x = rec(x=10, y=11, z=12); f(x); }
|