2010-08-26 16:45:58 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
// -*- rust -*-
|
2012-08-01 19:30:05 -05:00
|
|
|
fn f<T: copy, U: copy>(x: T, y: U) -> {a: T, b: U} { return {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
|
|
|
}
|