We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bacab1 commit aa1dab6Copy full SHA for aa1dab6
src/const_eval.md
@@ -41,7 +41,7 @@ to be run.
41
* All forms of [borrow]s, including raw borrows, with one limitation:
42
mutable borrows and shared borrows to values with interior mutability
43
are only allowed to refer to *transient* places. A place is *transient*
44
- if it will be deallocated before the end of evaluating the current constant item.
+ if its lifetime is strictly contained inside the current [const context].
45
* The [dereference operator].
46
* [Grouped] expressions.
47
* [Cast] expressions, except
@@ -52,6 +52,7 @@ to be run.
52
* [if], [`if let`] and [match] expressions.
53
54
## Const context
55
+[const context]: #const-context
56
57
A _const context_ is one of the following:
58
0 commit comments