about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/prim-precedence.rs
blob: 56d556e8f1deba80d9d49452d18529a220171701 (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;