I was surprised by this behavior and it led me to believe Clippy was issuing a false positive because I thought that #[non_exhaustive] was largely ineffective on unit structs. But in fact it does have notable effects, and these effects were not previously documented in the reference except in the matching section.
I was surprised by this behavior and it led me to believe Clippy was issuing a false positive because I thought that
#[non_exhaustive]
was largely ineffective on unit structs. But in fact it does have notable effects, and these effects were not previously documented in the reference except in the matching section.Closes #1097