You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It was brought up recently that the rules for field privacy aren't quite as they were intended to be. Currently, fields are public by default, and you explicitly make them private. In the originally envisioned world, this was only true of pub structs. Private structs would have private-by-default.
This essentially means that the default visibility of fields inherits the visibility of the struct. I would also like to go so far as to disallow pub on fields of a private structure.