Skip to content

Commit dcab860

Browse files
committed
Refer to enum discriminant initializers
The interesting thing about the example in the `items.enum...generics` rule is that it shows that the generic parameters from the enclosing enum can't appear anywhere within the initializer of the enum discriminant. We don't use "initializer" anywhere on this page yet, but it is the correct word to use here, so let's use it.
1 parent 008c729 commit dcab860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/items/enumerations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ enum OverflowingDiscriminantError2 {
197197
```
198198

199199
r[items.enum.discriminant.restrictions.generics]
200-
Explicit enum discriminants may not use generic parameters from the enclosing enum.
200+
Explicit enum discriminant initializers may not use generic parameters from the enclosing enum.
201201

202202
```rust,compile_fail
203203
#[repr(u32)]

0 commit comments

Comments
 (0)