summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/prim-precedence.rs
blob: 25625b95277feabbe3e9dfd93b714ff20ebfe8c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![deny(rustdoc::broken_intra_doc_links)]

pub mod char {
    /// [char]
    // @has prim_precedence/char/struct.Inner.html '//a/@href' '{{channel}}/std/primitive.char.html'
    pub struct Inner;
}

/// See [prim@char]
// @has prim_precedence/struct.MyString.html '//a/@href' '{{channel}}/std/primitive.char.html'
pub struct MyString;

/// See also [crate::char] and [mod@char]
// @has prim_precedence/struct.MyString2.html '//*[@href="char/index.html"]' 'crate::char'
// @has - '//*[@href="char/index.html"]' 'mod@char'
pub struct MyString2;