summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/prim-precedence.rs
blob: c5a64e42a01248001d5b11eba64c6745307398eb (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"]' 'char'
pub struct MyString2;