summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/raw-ident-eliminate-r-hashtag.rs
blob: 7dbe63854f374f194667bffd08a47aeabcc80c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#![crate_type="lib"]

pub mod internal {
    // @has 'raw_ident_eliminate_r_hashtag/internal/struct.mod.html'
    #[allow(non_camel_case_types)]
    pub struct r#mod;

    /// See [name], [other name]
    ///
    /// [name]: mod
    /// [other name]: crate::internal::mod
    // @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//*a[@href="struct.mod.html"]' 'name'
    // @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//*a[@href="struct.mod.html"]' 'other name'
    pub struct B;
}

/// See [name].
///
/// [name]: internal::mod
// @has 'raw_ident_eliminate_r_hashtag/struct.A.html' '//*a[@href="internal/struct.mod.html"]' 'name'
pub struct A;