File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ to be run.
43
43
* [ Cast] expressions, except pointer to address and
44
44
function pointer to address casts.
45
45
* Calls of [ const functions] and const methods.
46
- * [ loop] , [ while] and ` while let ` expressions.
46
+ * [ loop] , [ while] and [ ` while let ` ] expressions.
47
47
* [ if] , [ ` if let ` ] and [ match] expressions.
48
48
49
49
## Const context
@@ -57,6 +57,12 @@ A _const context_ is one of the following:
57
57
* [ statics]
58
58
* [ enum discriminants]
59
59
60
+ ## Const Functions
61
+
62
+ A _ const fn_ is a function that one is permitted to call from a const context. Declaring a function
63
+ ` const ` has no effect on any existing uses, it only restricts the types that arguments and the
64
+ return type may use, as well as prevent various expressions from being used within it.
65
+
60
66
[ arithmetic ] : expressions/operator-expr.md#arithmetic-and-logical-binary-operators
61
67
[ array expressions ] : expressions/array-expr.md
62
68
[ array indexing ] : expressions/array-expr.md#array-and-slice-indexing-expressions
You can’t perform that action at this time.
0 commit comments