Closed
Description
Right now structs are private-by-default and struct fields are public-by-default. And yet this is legal:
priv struct Foo {
pub bar: int
}
fn main() {}
The pub
and priv
declarations there are meaningless. Allowing them in those positions will increase confusion over what the defaults actually are. I propose that this be forbidden.