]>
git.proxmox.com Git - rustc.git/blob - tests/rustdoc/reexports-of-same-name.rs
1 // This test ensures that there are 4 imports as expected:
7 // @has 'foo/index.html'
13 #[allow(non_snake_case)]
18 // @count - '//*[@id="main-content"]//code' 'pub use nested::Foo;' 2
19 // @has - '//*[@id="reexport.Foo"]//a[@href="nested/struct.Foo.html"]' 'Foo'
20 // @has - '//*[@id="reexport.Foo-1"]//a[@href="nested/fn.Foo.html"]' 'Foo'
23 // @count - '//*[@id="main-content"]//code' 'pub use Foo as Bar;' 2
24 // @has - '//*[@id="reexport.Bar"]//a[@href="nested/struct.Foo.html"]' 'Foo'
25 // @has - '//*[@id="reexport.Bar-1"]//a[@href="nested/fn.Foo.html"]' 'Foo'