What expressions are allowed as the array length N in [_; N]?
As of Rust 1.24.1, the array length basically needs to either be a numeric literal or a “regular” constant that is a usize. There’s a small amount of constant evaluation that exists today, but it’s more-or-less limited to basic math. a perfectly valid expression in other contexts, just not as a length parameter to an … Read more