Update links for custom discriminants.
This commit is contained in:
parent
f177b7cb91
commit
572c56cb7e
1 changed files with 4 additions and 5 deletions
|
@ -15,9 +15,8 @@ or causing an integer overflow are two ways to induce this error.
|
||||||
|
|
||||||
Ensure that the expressions given can be evaluated as the desired integer type.
|
Ensure that the expressions given can be evaluated as the desired integer type.
|
||||||
|
|
||||||
See the [Custom Discriminants][custom-discriminants] section of the Reference
|
See the [Discriminants] section of the Reference for more information about
|
||||||
for more information about setting custom integer types on fieldless enums
|
setting custom integer types on enums using the [`repr` attribute][repr-attribute].
|
||||||
using the [`repr` attribute][repr-attribute].
|
|
||||||
|
|
||||||
[custom-discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#custom-discriminant-values-for-field-less-enumerations
|
[discriminants]: https://doc.rust-lang.org/reference/items/enumerations.html#discriminants
|
||||||
[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#reprc-enums
|
[repr-attribute]: https://doc.rust-lang.org/reference/type-layout.html#representations
|
||||||
|
|
Loading…
Add table
Reference in a new issue