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.
1 parent cd00008 commit 7bbf535Copy full SHA for 7bbf535
src/const_eval.md
@@ -263,7 +263,10 @@ A _const fn_ is a function that one is permitted to call from a const context.
263
264
r[const-eval.const-fn.usage]
265
Declaring a function
266
-`const` has no effect on any existing uses, it only restricts the types that arguments and the
+`const` has no effect on any existing uses.
267
+
268
+r[const-eval.const-fn.restrictions]
269
+Declaring a function `const` restricts the types that arguments and the
270
return type may use, and restricts the function body to constant expressions.
271
272
r[const-eval.const-fn.const-context]
0 commit comments