Closed
Description
Attempting to compile this:
let a = [100, 100];
a.0;
will give this error:
error[E0609]: no field `0` on type `[{integer}; 2]`
I was thinking that a clearer error could be something along the lines of:
error[E----]: attempting to use tuple indexing on an array.
and give this hint:
help: change this to `a[0]`