summary refs log tree commit diff
path: root/src/test/run-pass/auto-instantiate.rs
blob: 0d5429e1980b1e8c959d1b224e09abda1cfcfe1f (plain)
1
2
3
4
5
6
7
8
9
10



// -*- rust -*-
fn f<T: copy, U: copy>(x: T, y: U) -> {a: T, b: U} { ret {a: x, b: y}; }

fn main() {
    log(debug, f({x: 3, y: 4, z: 5}, 4).a.x);
    log(debug, f(5, 6).a);
}