rust-lang / reference

The Rust Reference
https://doc.rust-lang.org/nightly/reference/
Apache License 2.0
1.25k stars 490 forks source link

Fix improper documentation on casting non_exhaustive enums #1607

Closed mixy1 closed 2 months ago

mixy1 commented 2 months ago

Added a more complete example that explains what is allowed and what's not allowed when the non_exhaustive attribute is in use.