type ArrayType = array; struct S { arr : array, }; fn foo() { let src : ArrayType = ArrayType(); var dst : ArrayType; var dst_struct : S; var dst_array : array; let dst_ptr : ptr = &dst; let dst_struct_ptr : ptr = &dst_struct; let dst_array_ptr : ptr> = &dst_array; // Assign to struct.member. dst_struct.arr = src; // Assign to array[index]. dst_array[1] = src; // Assign via pointers. *dst_ptr = src; (*dst_struct_ptr).arr = src; (*dst_array_ptr)[0] = src; }