about summary refs log tree commit diff
path: root/src/test/compile-fail/mutable-class-fields.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-01-24 11:00:08 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-01-26 10:37:08 -0800
commit31ac9c4288f32c2afdce11e616668b251e6164ef (patch)
tree7bdaf7a6709929382bd84d4b9f8c340864a804d6 /src/test/compile-fail/mutable-class-fields.rs
parent838b5a4cc072057f31453cdd1b50345f92e1a772 (diff)
downloadrust-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