1 A private type was used in a public type signature.
3 Erroneous code example:
6 #![deny(private_in_public)]
11 pub fn bar() -> Bar { // error: private type in public interface
19 To solve this error, please ensure that the type is also public. The type
20 can be made inaccessible if necessary by placing it into a private inner
21 module, but it still has to be marked with `pub`.
26 pub struct Bar(u32); // we set the Bar type public
28 pub fn bar() -> Bar { // ok!