Closed
Description
If a crate has a private module and a private type, the module cannot have a public function whose signature refers to the private type. Here is an illustration:
type Baz = isize;
mod foo {
use Baz;
pub fn bar(_: Baz) { // error: private type in exported type signature
}
}
The public function cannot presumably be qualified as a public-facing part of the crate, and it is not presumably a part of the public API of the crate.
Regards,
Ivan
Metadata
Metadata
Assignees
Labels
No labels