We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
statics
1 parent 8b01b71 commit e8c43a6Copy full SHA for e8c43a6
src/const_eval.md
@@ -23,9 +23,10 @@ to be run.
23
* [Const parameters].
24
* [Paths] to [functions] and [constants].
25
Recursively defining constants is not allowed.
26
-* Paths to immutable [statics].
27
- * Reads of [`extern` statics] are not allowed.
28
- * Reads from and writes to a `static` with interior mutability are not allowed.
+* Paths to immutable [statics] with these restrictions and observations.
+ * In particular, reads and writes to `static mut` are not allowed.
+ * Reads out of and writes into a `static` with data equipped with interior mutability are not allowed.
29
+ * Reads out of and writes into [`extern` statics] are not allowed.
30
* [Tuple expressions].
31
* [Array expressions].
32
* [Struct] expressions.
0 commit comments