summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/intra-doc/trait-item.rs
blob: e95dba33b5fd97153d671081d770184ef8a553b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(rustdoc::broken_intra_doc_links)]

/// Link to [S::assoc_fn()]
/// Link to [Default::default()]
// @has trait_item/struct.S.html '//*[@href="struct.S.html#method.assoc_fn"]' 'S::assoc_fn()'
// @has - '//*[@href="{{channel}}/core/default/trait.Default.html#tymethod.default"]' 'Default::default()'
pub struct S;

impl S {
    pub fn assoc_fn() {}
}