let len = 42;
let arr = [0; len];
rustc 1.0.0 - 1.11.0: error: expected constant integer for repeat count, found variable
rustc 1.12.0 - 1.15.0: non-constant path in constant expression
rustc 1.16.0 - present: non-constant used with constant
Can we have the first one back please?
rustc 1.0.0 - 1.11.0:
error: expected constant integer for repeat count, found variablerustc 1.12.0 - 1.15.0:
non-constant path in constant expressionrustc 1.16.0 - present:
non-constant used with constantCan we have the first one back please?