about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/crate-relative-assoc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/intra-doc/crate-relative-assoc.rs')
-rw-r--r--tests/rustdoc/intra-doc/crate-relative-assoc.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/rustdoc/intra-doc/crate-relative-assoc.rs b/tests/rustdoc/intra-doc/crate-relative-assoc.rs
new file mode 100644
index 00000000000..d4a0ecc35ae
--- /dev/null
+++ b/tests/rustdoc/intra-doc/crate-relative-assoc.rs
@@ -0,0 +1,17 @@
+pub mod io {
+    pub trait Read {
+        fn read(&mut self);
+    }
+}
+
+pub mod bufreader {
+    // @has crate_relative_assoc/bufreader/index.html '//a/@href' 'struct.TcpStream.html#method.read'
+    //! [`crate::TcpStream::read`]
+    use crate::io::Read;
+}
+
+pub struct TcpStream;
+
+impl crate::io::Read for TcpStream {
+    fn read(&mut self) {}
+}