rust/src/test/run-pass/alignment-gep-tup-like-1.rs

14 lines
257 B
Rust
Raw Normal View History

type pair<A,B> = {
a: A, b: B
};
fn f<A:Copy Owned>(a: A, b: u16) -> fn@() -> (A, u16) {
fn@() -> (A, u16) { (a, b) }
}
fn main() {
let (a, b) = f(22_u64, 44u16)();
2012-08-22 19:24:52 -05:00
debug!("a=%? b=%?", a, b);
assert a == 22u64;
assert b == 44u16;
}