We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a7232 commit 911b16fCopy full SHA for 911b16f
src/const_eval.md
@@ -46,8 +46,8 @@ r[const-eval.const-expr.path-static]
46
* Writes to `static` items are not allowed in any constant evaluation context.
47
* Reads from `extern` statics are not allowed in any constant evaluation context.
48
* If the evaluation is *not* carried out in an initializer of a `static` item,
49
- then reads from any mutable `static` are not allowed.
50
- By mutable `static` it includes `static mut`s and `static`s containing an interior-mutable type.
+ then reads from any mutable `static` are not allowed.
+ A mutable `static` is a `static mut` item, or a `static` item with an interior-mutable type.
51
52
r[const-eval.const-expr.tuple]
53
* [Tuple expressions].
0 commit comments