1 error[E0435]: attempt to use a non-constant value in a constant
2 --> $DIR/issue-91560.rs:10:19
4 LL | let mut length: usize = 2;
5 | -------------- help: consider using `const` instead of `let`: `const length`
7 LL | let arr = [0; length];
8 | ^^^^^^ non-constant value
10 error[E0435]: attempt to use a non-constant value in a constant
11 --> $DIR/issue-91560.rs:17:19
13 LL | let length: usize = 2;
14 | ------------ help: consider using `const` instead of `let`: `const length`
16 LL | let arr = [0; length];
17 | ^^^^^^ non-constant value
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0435`.