Compiling playground v0.1.0 (/home/eeeeeee/playground) error: constant expression depends on a generic parameter --> src/main.rs:32:18 | 32 | let _f = [0; T::VALUE]; | ^^^^^^^^ | = note: this may fail depending on what value the parameter takes
T::VALUE is declared to be
usize, is it actually possible for this to fail? AFAIK all
usize are valid array sizes in Rust, including 0. Would it be possible to narrowly stabilize just using generic
usize for array sizes? This combined with const declarations for associated consts already being allowed to have complex expressions would give me 99% of what I want for low level programming.