diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-24 11:00:08 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-26 10:37:08 -0800 |
| commit | 31ac9c4288f32c2afdce11e616668b251e6164ef (patch) | |
| tree | 7bdaf7a6709929382bd84d4b9f8c340864a804d6 /src/test/compile-fail/mutable-class-fields.rs | |
| parent | 838b5a4cc072057f31453cdd1b50345f92e1a772 (diff) | |
| download | rust-31ac9c4288f32c2afdce11e616668b251e6164ef.tar.gz rust-31ac9c4288f32c2afdce11e616668b251e6164ef.zip | |
Change private structs to have private fields by default
This was the original intention of the privacy of structs, and it was erroneously implemented before. A pub struct will now have default-pub fields, and a non-pub struct will have default-priv fields. This essentially brings struct fields in line with enum variants in terms of inheriting visibility. As usual, extraneous modifiers to visibility are disallowed depend on the case that you're dealing with. Closes #11522
Diffstat (limited to 'src/test/compile-fail/mutable-class-fields.rs')
0 files changed, 0 insertions, 0 deletions
