11// @has 'glob_shadowing/index.html'
2- // @count - '//tr[@class="module-item"]' 4
2+ // @count - '//tr[@class="module-item"]' 5
33// @!has - '//tr[@class="module-item"]' 'sub1::describe'
4+ // @has - '//tr[@class="module-item"]' 'sub2::describe'
5+
46// @!has - '//tr[@class="module-item"]' 'sub1::describe2'
7+
8+ // @!has - '//tr[@class="module-item"]' 'sub1::prelude'
59// @has - '//tr[@class="module-item"]' 'mod::prelude'
6- // @has - '//tr[@class="module-item"]' 'sub2::describe'
10+
711// @has - '//tr[@class="module-item"]' 'sub1::Foo (struct)'
812// @has - '//tr[@class="module-item"]' 'mod::Foo (function)'
13+
14+ // @has - '//tr[@class="module-item"]' 'sub4::inner::X'
15+
916// @has 'glob_shadowing/fn.describe.html'
1017// @has - '//div[@class="docblock"]' 'sub2::describe'
1118
@@ -19,10 +26,9 @@ mod sub1 {
1926 // this should be shadowed by mod::prelude
2027 /// sub1::prelude
2128 pub mod prelude {
22- pub use super :: describe;
2329 }
2430
25- // this should *not* be shadowed, because sub1::Foo and mod::Foo are in different namespace
31+ // this should *not* be shadowed, because sub1::Foo and mod::Foo are in different namespaces
2632 /// sub1::Foo (struct)
2733 pub struct Foo ;
2834
@@ -50,8 +56,16 @@ mod sub3 {
5056 }
5157}
5258
53- /// mod::prelude
54- pub mod prelude { }
59+ mod sub4 {
60+ // this should be shadowed by sub4::inner::X
61+ /// sub4::X
62+ pub const X : usize = 0 ;
63+ pub mod inner {
64+ pub use super :: * ;
65+ /// sub4::inner::X
66+ pub const X : usize = 1 ;
67+ }
68+ }
5569
5670/// mod::Foo (function)
5771pub fn Foo ( ) { }
@@ -64,3 +78,9 @@ pub use sub1::*;
6478
6579#[ doc( inline) ]
6680pub use sub3:: * ;
81+
82+ #[ doc( inline) ]
83+ pub use sub4:: inner:: * ;
84+
85+ /// mod::prelude
86+ pub mod prelude { }
0 commit comments