summary refs log tree commit diff
path: root/src/test/rustdoc/intra-link-prim-precedence.rs
blob: 0a4e57ef643e7824145262785828b4f9216192f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ignore-tidy-linelength
#![deny(broken_intra_doc_links)]

pub mod char {
    /// [char]
    // @has intra_link_prim_precedence/char/struct.Inner.html '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.char.html'
    pub struct Inner;
}

/// See [prim@char]
// @has intra_link_prim_precedence/struct.MyString.html '//a/@href' 'https://doc.rust-lang.org/nightly/std/primitive.char.html'
pub struct MyString;

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