]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/inline_local/issue-32343.rs
Rollup merge of #107724 - klensy:imports, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / inline_local / issue-32343.rs
1 // @!has issue_32343/struct.Foo.html
2 // @has issue_32343/index.html
3 // @has - '//code' 'pub use foo::Foo'
4 // @!has - '//code/a' 'Foo'
5 #[doc(no_inline)]
6 pub use foo::Foo;
7
8 // @!has issue_32343/struct.Bar.html
9 // @has issue_32343/index.html
10 // @has - '//code' 'pub use foo::Bar'
11 // @has - '//code/a' 'Bar'
12 #[doc(no_inline)]
13 pub use foo::Bar;
14
15 mod foo {
16     pub struct Foo;
17     pub struct Bar;
18 }
19
20 pub mod bar {
21     // @has issue_32343/bar/struct.Bar.html
22     pub use ::foo::Bar;
23 }