summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/crate-relative-assoc.rs
blob: d4a0ecc35aeafbd58ab2274fd925448d32a227cd (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) {}
}