Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
elihu
6y ago
0 comments
Save
Share
Perhaps Rust could add a #[exhaustive] pragma at the point where the enum is being pattern matched to over-ride the libary's #[non-exhaustive] pragma, for users that really do want their code not to compile when an enum is extended.
0 comments
1 comments · 1 top-level
top
newest
oldest
est31
6y ago
This proposal has been made in the tracking issue already, yet it hasn't been picked up on yet:
https://github.com/rust-lang/rust/issues/44109#issuecomment-...
j
/
k
navigate · click thread line to collapse