Skip to content

Commit

Permalink
clarify limitations on type system consts
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 21, 2024
1 parent 86a09c8 commit 76bd77a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ A _const context_ is one of the following:

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

## Const Functions

Expand Down

0 comments on commit 76bd77a

Please sign in to comment.