/* Passes a struct through a template parameter. */ struct A { int x; }; fun myid(T x) -> T { return x; } fun main() -> int@ { let a = @A{x = 2}; let b = myid(a); return b.x - 2; }