about summary refs log tree commit diff
path: root/tests/rustdoc/private-mod-override-re-export.rs
diff options
context:
space:
mode:
authorIris Shi <0.0@owo.li>2025-09-20 16:09:40 +0800
committerIris Shi <0.0@owo.li>2025-09-20 16:12:29 +0800
commit2a75cb9d6c63eb02365e9fd8b7e53cd0d360cbdf (patch)
tree4735f0a1c368e76ac3c8ccd86589a37f56e2429c /tests/rustdoc/private-mod-override-re-export.rs
parentec38671075266e9cee0348701da2e133379e7c6c (diff)
downloadrust-2a75cb9d6c63eb02365e9fd8b7e53cd0d360cbdf.tar.gz
rust-2a75cb9d6c63eb02365e9fd8b7e53cd0d360cbdf.zip
add private module override re-export test
Diffstat (limited to 'tests/rustdoc/private-mod-override-re-export.rs')
-rw-r--r--tests/rustdoc/private-mod-override-re-export.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/private-mod-override-re-export.rs b/tests/rustdoc/private-mod-override-re-export.rs
new file mode 100644
index 00000000000..47b07958709
--- /dev/null
+++ b/tests/rustdoc/private-mod-override-re-export.rs
@@ -0,0 +1,14 @@
+// https://github.com/rust-lang/rust/issues/60926
+#![crate_name = "foo"]
+#![crate_type = "lib"]
+
+mod m1 {
+    pub mod m2 {
+        pub struct Foo;
+    }
+}
+
+pub use m1::*;
+use crate::m1::m2;
+
+//@ !has foo/index.html '//a[@href="m2/index.html"]' 'm2'