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
17 To solve this error, please ensure that the type is also public. The type
18 can be made inaccessible if necessary by placing it into a private inner
19 module, but it still has to be marked with `pub`.
24 pub struct Bar(u32); // we set the Bar type public
26 pub fn bar() -> Bar { // ok!