You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is actually currently working as intended I believe. The definition of a "public signature" is that the type Ty is marked pub, so it's considered a public type subject to the privacy rules. You can find more details in the associated RFC
If so, that's disappointing. It seriously hinders the ability to make some patterns modular.
In the example, there's no way to access Foo::Ty from the outer scope without making it public, and yet to do so forces other types to be exported from that scope!
The following code will fail to compile:
When in fact no private types are exported.
The text was updated successfully, but these errors were encountered: