2010-08-26 14:45:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 11:19:50 -07:00
|
|
|
// -*- rust -*-
|
2011-09-12 11:27:30 +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-08-12 06:37:25 -07:00
|
|
|
fn main() { log f({x: 3, y: 4, z: 5}, 4).a.x; log f(5, 6).a; }
|