]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_error_codes/src/error_codes/E0435.md
Auto merge of #80790 - JohnTitor:rollup-js1noez, r=JohnTitor
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0435.md
index 424e5ce1e2e5b99917ea4648b14a8e1dbe5eae56..798a20d48b65bcb5e4d1c928903c6938a7cb4a2b 100644 (file)
@@ -7,6 +7,12 @@ let foo = 42;
 let a: [u8; foo]; // error: attempt to use a non-constant value in a constant
 ```
 
+'constant' means 'a compile-time value'.
+
+More details can be found in the [Variables and Mutability] section of the book.
+
+[Variables and Mutability]: https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants
+
 To fix this error, please replace the value with a constant. Example:
 
 ```