Skip to content

Commit 76bd77a

Browse files
committed
clarify limitations on type system consts
1 parent 86a09c8 commit 76bd77a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/const_eval.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ A _const context_ is one of the following:
6363

6464
Const contexts that are used as parts of types (array type and repeat length
6565
expressions as well as const generic arguments) can only make restricted use of
66-
surrounding generic type and lifetime parameters.
66+
surrounding generic parameters: such an expression must either be a single bare
67+
const generic parameter, or an arbitrary expression not making use of any
68+
generics.
6769

6870
## Const Functions
6971

0 commit comments

Comments
 (0)