As no one here explicitly answers for arrays, to print out an array you need to specify the {:?}, also used to print debug output
let val = 3;
let length = 32; // the maximum that can be printed without error
let array1d = [val; length];
let array2d = [array1d; length]; // or [[3; 32]; 32];
let array3d = [array2d; length]; // or [[[3; 32]; 32]; 32];
However arrays where length > 32 will exit with an error:
let length = 33;
let array1d = [3; length];
println("{:?}", array1d);
error[E0277]: the trait bound `[{integer}; 33]: std::fmt::Debug` is not satisfied
--> src\main.rs:6:22
|
| println!("{:?}", array1d);
| ^^^^^^^ the trait `std::fmt::Debug` is not implemented for `[{integer}; 33]`