2010-08-26 16:45:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
// -*- rust -*-
|
2012-01-05 08:35:37 -06:00
|
|
|
fn f<T: copy, U: copy>(x: T, y: U) -> {a: T, b: U} { ret {a: x, b: y}; }
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-12-22 16:42:52 -06:00
|
|
|
fn main() {
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, f({x: 3, y: 4, z: 5}, 4).a.x);
|
|
|
|
log(debug, f(5, 6).a);
|
2011-12-22 16:42:52 -06:00
|
|
|
}
|