We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
!Copy
1 parent a048a3e commit 0f24c33Copy full SHA for 0f24c33
text/0000-const-locals.md
@@ -24,6 +24,11 @@ exists but is still disallowed.
24
everywhere else. Historically these did not exist in constants and const fn
25
because it would have been very hard to support them in the old const evaluator.
26
27
+This means that you can only move out of any let binding once, even though in a
28
+const environment obtaining a copy of the object could be done by executing the
29
+code twice, side effect free. All invariants held by runtime code are also
30
+upheld by constant evaluation.
31
+
32
# Reference-level explanation
33
[reference-level-explanation]: #reference-level-explanation
34
0 commit comments