We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdf6b0 commit 63e7a8bCopy full SHA for 63e7a8b
text/0000-struct-variants.md
@@ -105,6 +105,11 @@ them without trouble for a while.
105
Change the `Status` of the `struct_variant` feature from `Active` to
106
`Accepted`.
107
108
+The fields of struct variants use the same style of privacy as normal struct
109
+fields - they're private unless tagged `pub`. This is inconsistent with tuple
110
+variants, where the fields have inherited visibility. Struct variant fields
111
+will be changed to have inhereted privacy, and `pub` will no longer be allowed.
112
+
113
# Drawbacks
114
115
Adding formal support for a feature increases the maintenance burden of rustc.
0 commit comments