//# publish module 0x42.Tests { public test(x: T) { let v: vector; label l0: v = vec_pack_0(); assert(vec_len(&v) == 0, 42); vec_push_back(&mut v, copy(x)); vec_push_back(&mut v, copy(x)); vec_swap(&mut v, 0, 1); _ = vec_imm_borrow(&v, 0); _ = vec_mut_borrow(&mut v, 0); _ = vec_pop_back(&mut v); _ = vec_pop_back(&mut v); vec_unpack_0(move(v)); return; } } //# run 0x42::Tests::test --type-args u64 --args 0 //# run 0x42::Tests::test --type-args vector --args b"hello"