Closed
Description
The current code results in a hard error:
fn main() {
pub struct foo;
}
This can be painful when writing macros that generate structs or inherent methods, which would otherwise need to be public (particularly when writing tests for those macros). This doesn't seem like something which should need to be an error, and could instead be a lint (which is deny
by default). I'm unsure if this would need a full RFC or not, and was told that it'd be best to open an issue to start.