about summary refs log tree commit diff
path: root/tests/rustdoc/private-mod-override-re-export.rs
diff options
context:
space:
mode:
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'