Closed
Description
"Private" impl functions can leak out of a module when defined on a public type. This can allow private types to appear as part of a modules' public interface.
Example on playground: http://is.gd/aGx2MV
In this example, the type Private
leaks out of the_module
via the impl Public<Private>
impl block. It looks like all functions in that block should be inferred to be private?