2010-08-26 21:45:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 18:19:50 +00:00
|
|
|
// -*- rust -*-
|
2011-10-25 13:56:55 +00:00
|
|
|
fn f<T, U>(x: T, y: U) -> {a: T, b: U} { ret {a: x, b: y}; }
|
2011-06-15 18:19:50 +00:00
|
|
|
|
2011-08-12 13:37:25 +00:00
|
|
|
fn main() { log f({x: 3, y: 4, z: 5}, 4).a.x; log f(5, 6).a; }
|