diff options
| author | Michael Howell <michael@notriddle.com> | 2022-09-09 12:58:42 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-09-09 13:05:08 -0700 |
| commit | 1f8d552d6dfd4bb534c98b79150f21a122ed0b4c (patch) | |
| tree | 643a84b250004f98a69dfda9155fe9505ae0fe49 /src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs | |
| parent | 98f3001eecbe4cbd091c10ffab45b4c164bb507b (diff) | |
| download | rust-1f8d552d6dfd4bb534c98b79150f21a122ed0b4c.tar.gz rust-1f8d552d6dfd4bb534c98b79150f21a122ed0b4c.zip | |
rustdoc: avoid cleaning modules with duplicate names
Diffstat (limited to 'src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs')
| -rw-r--r-- | src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs b/src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs new file mode 100644 index 00000000000..f9a2c0954a7 --- /dev/null +++ b/src/test/rustdoc/issue-83375-multiple-mods-w-same-name-doc-inline.rs @@ -0,0 +1,15 @@ +#![crate_name = "foo"] + +pub mod sub { + pub struct Item; + + pub mod prelude { + pub use super::Item; + } +} + +// @count foo/index.html '//a[@class="mod"][@title="foo::prelude mod"]' 1 +pub mod prelude {} + +#[doc(inline)] +pub use sub::*; |
