1 #![warn(unused_imports)]
8 pub use super::foo; //~ ERROR cannot be re-exported
10 //~^ WARNING glob import doesn't reexport anything because no candidate is public enough
21 pub use super::foo; // This is OK since the value `foo` is visible enough.
22 fn f(_: foo::S) {} // `foo` is imported in the type namespace (but not `pub` re-exported).
26 pub use super::*; // This is also OK since the value `foo` is visible enough.
27 fn f(_: foo::S) {} // Again, the module `foo` is imported (but not `pub` re-exported).
32 // Test that `foo` is not re-exported.
33 use b::a::foo::S; //~ ERROR `foo`
34 use b::b::foo::S as T; //~ ERROR `foo`