Skip to content

Commit 68fb8b8

Browse files
committed
Add restriction of reads/writes of a static with interior mutability
1 parent 97abd04 commit 68fb8b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/const_eval.md

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ to be run.
2525
Recursively defining constants is not allowed.
2626
* Paths to immutable [statics].
2727
* Reads of [`extern` statics] are not allowed.
28+
* Reads from and writes to a `static` with interior mutability are not allowed.
2829
* [Tuple expressions].
2930
* [Array expressions].
3031
* [Struct] expressions.

0 commit comments

Comments
 (0)