-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Document integer enum discriminators in the manual #15755
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I think it would be good to also mention what the type of the discriminant is and how to control it per #9613. |
dlrobertson
pushed a commit
to dlrobertson/rust
that referenced
this issue
Nov 29, 2018
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Nov 13, 2023
fix: make cursor select at _tmp Here make cursor select at `_tmp` atuomatically after the assist apply. Refer to [vscode snippet placeholder](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_placeholders).  following rust-lang/rust-analyzer#15752
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The tutorial documents how to set the discriminator for a C-style enum (
enum Foo { Bar = 123 }
) and how to cast such an enum to a numeric type (Bar as uint
). However, the language manual does not mention these features at all.The text was updated successfully, but these errors were encountered: