File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 44
55// @has 'foo/index.html'
66// @has - '//*[@id="main-content"]' ''
7- // We check that the only "h2" present is for "Bla".
8- // @count - '//*[@id="main-content"]/h2' 1
7+ // We check that the only "h2" present are "Structs" ( for "Bla") and "Re-exports ".
8+ // @count - '//*[@id="main-content"]/h2' 2
99// @has - '//*[@id="main-content"]/h2' 'Structs'
10+ // @has - '//*[@id="main-content"]/h2' 'Re-exports'
11+ // The 3 re-exports.
12+ // @count - '//*[@id="main-content"]//*[@class="item-table"]//li//code' 3
13+ // The public struct.
1014// @count - '//*[@id="main-content"]//a[@class="struct"]' 1
1115
1216mod ext {
Original file line number Diff line number Diff line change 1+ // Ensuring that anonymous re-exports are always inlined.
2+
3+ #![ crate_name = "foo" ]
4+
5+ pub mod foo {
6+ pub struct Foo ;
7+ }
8+
9+ mod bar {
10+ pub struct Bar ;
11+ }
12+
13+ // @has 'foo/index.html'
14+ // We check that the only "h2" present are "Re-exports" and "Modules".
15+ // @count - '//*[@id="main-content"]/h2' 2
16+ // @has - '//*[@id="main-content"]/h2' 'Re-exports'
17+ // @has - '//*[@id="main-content"]/h2' 'Modules'
18+ // @has - '//*[@id="main-content"]//*[@class="item-table"]//li//code' 'pub use foo::Foo as _;'
19+ // @has - '//*[@id="main-content"]//*[@class="item-table"]//li//code' 'pub use bar::Bar as _;'
20+ pub use foo:: Foo as _;
21+ pub use bar:: Bar as _;
You can’t perform that action at this time.
0 commit comments