let test = [ &[1, 2, 3], &[10, 20] ];
Gives the following error on the [10, 20] array:
expected an array with a fixed size of 3 elements, found one with 2 elements
But I’m putting
& characters before the inner arrays, so their type should be
&[i32] for both, instead of
[i32; 3] and
[i32; 2]. Why is it not working?