1
1
// @has 'glob_shadowing/index.html'
2
- // @count - '//tr[@class="module-item"]' 4
2
+ // @count - '//tr[@class="module-item"]' 5
3
3
// @!has - '//tr[@class="module-item"]' 'sub1::describe'
4
+ // @has - '//tr[@class="module-item"]' 'sub2::describe'
5
+
4
6
// @!has - '//tr[@class="module-item"]' 'sub1::describe2'
7
+
8
+ // @!has - '//tr[@class="module-item"]' 'sub1::prelude'
5
9
// @has - '//tr[@class="module-item"]' 'mod::prelude'
6
- // @has - '//tr[@class="module-item"]' 'sub2::describe'
10
+
7
11
// @has - '//tr[@class="module-item"]' 'sub1::Foo (struct)'
8
12
// @has - '//tr[@class="module-item"]' 'mod::Foo (function)'
13
+
14
+ // @has - '//tr[@class="module-item"]' 'sub4::inner::X'
15
+
9
16
// @has 'glob_shadowing/fn.describe.html'
10
17
// @has - '//div[@class="docblock"]' 'sub2::describe'
11
18
@@ -19,10 +26,9 @@ mod sub1 {
19
26
// this should be shadowed by mod::prelude
20
27
/// sub1::prelude
21
28
pub mod prelude {
22
- pub use super :: describe;
23
29
}
24
30
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
26
32
/// sub1::Foo (struct)
27
33
pub struct Foo ;
28
34
@@ -50,8 +56,16 @@ mod sub3 {
50
56
}
51
57
}
52
58
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
+ }
55
69
56
70
/// mod::Foo (function)
57
71
pub fn Foo ( ) { }
@@ -64,3 +78,9 @@ pub use sub1::*;
64
78
65
79
#[ doc( inline) ]
66
80
pub use sub3:: * ;
81
+
82
+ #[ doc( inline) ]
83
+ pub use sub4:: inner:: * ;
84
+
85
+ /// mod::prelude
86
+ pub mod prelude { }
0 commit comments