rust/src/test/run-pass/auto-instantiate.rs

8 lines
144 B
Rust
Raw Normal View History

// -*- rust -*-
fn f<T, U>(x: T, y: U) -> {a: T, b: U} { ret {a: x, b: y}; }
fn main() { log f({x: 3, y: 4, z: 5}, 4).a.x; log f(5, 6).a; }