-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document integer enum discriminators in the manual #15755
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). ![cursor_selection](https://github.com/rust-lang/rust-analyzer/assets/71162630/a7866efe-2d54-488b-903e-9df039f34a7e) following rust-lang/rust-analyzer#15752
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in 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: