summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/intra-doc/cross-crate/traits.rs
blob: 7b9554bfdb070d8b6b2c70da79fbded6a6db4c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// aux-build:traits.rs
// build-aux-docs
#![deny(rustdoc::broken_intra_doc_links)]

extern crate inner;
use inner::SomeTrait;

pub struct SomeStruct;

 // @has 'traits/struct.SomeStruct.html' '//a[@href="../inner/trait.SomeTrait.html"]' 'SomeTrait'
impl SomeTrait for SomeStruct {
    // @has 'traits/struct.SomeStruct.html' '//a[@href="../inner/trait.SomeTrait.html"]' 'a trait'
    fn foo() {}
}