diff options
Diffstat (limited to 'tests/rustdoc/inline_local/pub-re-export-28537.rs')
| -rw-r--r-- | tests/rustdoc/inline_local/pub-re-export-28537.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/rustdoc/inline_local/pub-re-export-28537.rs b/tests/rustdoc/inline_local/pub-re-export-28537.rs new file mode 100644 index 00000000000..0e9836c7cee --- /dev/null +++ b/tests/rustdoc/inline_local/pub-re-export-28537.rs @@ -0,0 +1,20 @@ +// https://github.com/rust-lang/rust/issues/28537 +#![crate_name="foo"] + +#[doc(hidden)] +pub mod foo { + pub struct Foo; +} + +mod bar { + pub use self::bar::Bar; + mod bar { + pub struct Bar; + } +} + +//@ has foo/struct.Foo.html +pub use foo::Foo; + +//@ has foo/struct.Bar.html +pub use self::bar::Bar; |
