Skip to content

Commit 1d9443b

Browse files
committed
Add missing rule identifier for const outer generics
In the section on const contexts, we have a rule about when outer generics cannot be used. This was missing a rule identifier, so the text appeared to be part of the preceding rule. Let's fix that.
1 parent 6110395 commit 1d9443b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/const_eval.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ r[const-eval.const-context.generic]
248248
r[const-eval.const-context.block]
249249
* A [const block]
250250
251+
r[const-eval.const-context.outer-generics]
251252
Const contexts that are used as parts of types (array type and repeat length
252253
expressions as well as const generic arguments) can only make restricted use of
253254
surrounding generic parameters: such an expression must either be a single bare

0 commit comments

Comments
 (0)