@@ -9,7 +9,7 @@ can be evaluated at compile-time.
9
9
Certain forms of expressions, called constant expressions, can be evaluated at
10
10
compile time. In [ const contexts] ( #const-context ) , these are the only allowed
11
11
expressions, and are always evaluated at compile time. In other places, such as
12
- [ ` let ` statements ] ( statements.html#let-statements ) , constant expressions * may*
12
+ [ let statement ] s , constant expressions * may*
13
13
be, but are not guaranteed to be, evaluated at compile time. Behaviors such as
14
14
out of bounds [ array indexing] or [ overflow] are compiler errors if the value
15
15
must be evaluated at compile time (i.e. in const contexts). Otherwise, these
@@ -40,6 +40,7 @@ to be ran.
40
40
* [ Cast] expressions, except pointer to address and
41
41
function pointer to address casts.
42
42
* Calls of const functions and const methods
43
+ * [ let statement] s and thus irrefutable [ patterns]
43
44
44
45
## Const context
45
46
@@ -81,3 +82,5 @@ A _const context_ is one of the following:
81
82
[ dereference operator ] : expressions/operator-expr.html#the-dereference-operator
82
83
[ grouped ] : expressions/grouped-expr.html
83
84
[ cast ] : expressions/operator-expr.html#type-cast-expressions
85
+ [ let statement ] : statements.html#let-statements
86
+ [ patterns ] : patterns.html
0 commit comments