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
mod B {
pub use self::A::foo;
mod A {
pub struct X;
pub fn foo(_: X) {}
}
}
From outside B, foo is visible, but X is not.
The fix is discussed here and in the following comments.
I guess this is technically a backwards incompatible change, but I would regard any example of it as a bug, so I would not feel bad fixing this post 1.0 (also the fix is really easy if we do break your code - just add pub). Still, nominating triage: I-nominated
As discussed in the RFC, we try to prevent private items in public signatures, not types which are not visible, it was decided that the latter was too difficult. So, this is not a bug. Closing.
e.g.,
From outside
B
,foo
is visible, butX
is not.The fix is discussed here and in the following comments.
I guess this is technically a backwards incompatible change, but I would regard any example of it as a bug, so I would not feel bad fixing this post 1.0 (also the fix is really easy if we do break your code - just add
pub
). Still, nominating triage: I-nominated(example by @tomaka from #23585)
The text was updated successfully, but these errors were encountered: