struct Wrapper { item: T; id: int; } test "test_generics_struct" { // Instantiate with int let w1: Wrapper; w1.id = 1; w1.item = 500; println "Wrapper Int: {w1.item} (ID: {w1.id})"; }