about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/crate-relative-assoc.rs
blob: 1625b98dea6027bbf3b7dd4a9e03106f539a5338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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) {}
}