module 0x42::Test { struct X has drop {} // test basic, valid vector literals fun none() { (vector[]: vector); } fun one() { (vector[0]: vector); (vector[0]: vector); (vector[0]: vector); (vector[@0]: vector
); (vector[X{}]: vector); (vector[vector[]]: vector>); (vector[vector[vector[]]]: vector>>); } fun many() { (vector[0, 1, 2]: vector); (vector[0, 1, 2]: vector); (vector[0, 1, 2]: vector); (vector[@0, @1]: vector
); (vector[X{}, X{}]: vector); (vector[vector[], vector[]]: vector>); (vector[vector[vector[], vector[]], vector[]]: vector>>); } }