2010-08-26 14:45:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
// -*- rust -*-
|
2011-07-27 14:19:39 +02:00
|
|
|
fn f[T, U](x: &T, y: &U) -> {a: T, b: U} { ret {a: x, b: y}; }
|
2011-06-15 11:19:50 -07:00
|
|
|
|
2011-07-27 14:19:39 +02:00
|
|
|
fn main() { log f({x: 3, y: 4, z: 5}, 4).a.x; log f(5, 6).a; }
|