We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9e7045 commit c71348aCopy full SHA for c71348a
compiler/rustc_error_codes/src/error_codes/E0435.md
@@ -7,6 +7,12 @@ let foo = 42;
7
let a: [u8; foo]; // error: attempt to use a non-constant value in a constant
8
```
9
10
+'constant' means 'a compile-time value'.
11
+
12
+More details can be found in the [Variables and Mutability] section of the book.
13
14
+[Variables and Mutability]: https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants
15
16
To fix this error, please replace the value with a constant. Example:
17
18
0 commit comments