1 A non-constant value was used in a constant expression.
3 Erroneous code example:
7 let a: [u8; foo]; // error: attempt to use a non-constant value in a constant
10 To fix this error, please replace the value with a constant. Example:
13 let a: [u8; 42]; // ok!
19 const FOO: usize = 42;
20 let a: [u8; FOO]; // ok!