-
Notifications
You must be signed in to change notification settings - Fork 58
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
Enums: Document that out-of-range values for fieldless repr(C) enums are UB #137
Comments
This is basically subsumed by #69: any enum value must have a valid discriminant value. |
It is, but I believe it would be useful to document this explicitly for This is something that I noticed being misunderstood by quite a few people in the past (including myself), who believed that |
I agree. Please leave that note in the other discussion. :) |
Done, thanks :) |
See rust-lang/rust-memory-model#41
The text was updated successfully, but these errors were encountered: