Could pub
be allowed in trait definitions and implementations?
trait Foo {
pub fn foo();
}
impl Foo for Bar {
pub fn foo() {}
}
I know it’s unnecessary/redundant, but when I copy/move functions between concrete impl
and traits, I need to remember to add or remove it accordingly.
It feels like a warning/style nitpick that’s unnecessarily a hard error (E0449).