ISSUE: 将mut标注到类型中
考虑到现在array的行为已经让array成为一个没有使用价值的类型,因此还是需要提供mut,把mut做到类型之中
let a = [1, 2, 3, 4];
a[0] = 2; // invalid, a[0] is 'int' cannot be assigned.
let b = mut[1,2,3];
b[0] = 2; // invalid, b[0] is 'int' cannot be assigned.
let c = [1,2,3,4]: array<mut int>;
c[0] = 2; // OK