File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Regression test for <https://github.com/rust-lang/rust/issues/109258>.
2
+
3
+ #![ crate_name = "foo" ]
4
+
5
+ // @has 'foo/index.html'
6
+ // We should only have a "Re-exports" and a "Modules" headers.
7
+ // @count - '//*[@id="main-content"]/h2[@class="small-section-header"]' 2
8
+ // @has - '//*[@id="main-content"]/h2[@class="small-section-header"]' 'Re-exports'
9
+ // @has - '//*[@id="main-content"]/h2[@class="small-section-header"]' 'Modules'
10
+
11
+ // @has - '//*[@id="reexport.Foo"]' 'pub use crate::issue_109258::Foo;'
12
+ // @has - '//*[@id="reexport.Foo"]//a[@href="issue_109258/struct.Foo.html"]' 'Foo'
13
+ // @!has 'foo/struct.Foo.html'
14
+ pub use crate :: issue_109258:: Foo ;
15
+
16
+ // @has 'foo/issue_109258/index.html'
17
+ // We should only have a "Structs" header.
18
+ // @count - '//*[@id="main-content"]/h2[@class="small-section-header"]' 1
19
+ // @has - '//*[@id="main-content"]/h2[@class="small-section-header"]' 'Structs'
20
+ // @has - '//*[@id="main-content"]//a[@href="struct.Foo.html"]' 'Foo'
21
+ // @has 'foo/issue_109258/struct.Foo.html'
22
+ pub mod issue_109258 {
23
+ mod priv_mod {
24
+ pub struct Foo ;
25
+ }
26
+ pub use self :: priv_mod:: Foo ;
27
+ }
You can’t perform that action at this time.
0 commit comments