summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-js/reexport.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-js/reexport.rs')
-rw-r--r--src/test/rustdoc-js/reexport.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/rustdoc-js/reexport.rs b/src/test/rustdoc-js/reexport.rs
new file mode 100644
index 000000000..d69b2901e
--- /dev/null
+++ b/src/test/rustdoc-js/reexport.rs
@@ -0,0 +1,11 @@
+// This test enforces that the (renamed) reexports are present in the search results.
+
+pub mod fmt {
+ pub struct Subscriber;
+}
+mod foo {
+ pub struct AnotherOne;
+}
+
+pub use foo::AnotherOne;
+pub use fmt::Subscriber as FmtSubscriber;