1 error[E0446]: private type `Foo::Bar` in public interface
5 | - `Foo::Bar` declared as private
7 LL | / pub fn bar() -> Bar { //~ ERROR E0446
10 | |_____^ can't leak private type
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0446`.