about summary refs log tree commit diff
path: root/tests/rustdoc/pub-use-root-path-95873.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/pub-use-root-path-95873.rs')
-rw-r--r--tests/rustdoc/pub-use-root-path-95873.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/pub-use-root-path-95873.rs b/tests/rustdoc/pub-use-root-path-95873.rs
new file mode 100644
index 00000000000..5a817fb3409
--- /dev/null
+++ b/tests/rustdoc/pub-use-root-path-95873.rs
@@ -0,0 +1,5 @@
+// https://github.com/rust-lang/rust/issues/95873
+#![crate_name = "foo"]
+
+// @has foo/index.html "//*[@class='item-name']" "pub use ::std as x;"
+pub use ::std as x;