summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/trait-src-link.rs
blob: a6367efba6121f1ee85c19b7f9b45ce029f6a086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#![crate_name = "quix"]
pub trait Foo {
    // @has quix/trait.Foo.html '//a[@href="../src/quix/trait-src-link.rs.html#4"]' 'source'
    fn required();

    // @has quix/trait.Foo.html '//a[@href="../src/quix/trait-src-link.rs.html#7"]' 'source'
    fn provided() {}
}

pub struct Bar;

impl Foo for Bar {
    // @has quix/struct.Bar.html '//a[@href="../src/quix/trait-src-link.rs.html#14"]' 'source'
    fn required() {}
    // @has quix/struct.Bar.html '//a[@href="../src/quix/trait-src-link.rs.html#7"]' 'source'
}

pub struct Baz;

impl Foo for Baz {
    // @has quix/struct.Baz.html '//a[@href="../src/quix/trait-src-link.rs.html#22"]' 'source'
    fn required() {}

    // @has quix/struct.Baz.html '//a[@href="../src/quix/trait-src-link.rs.html#25"]' 'source'
    fn provided() {}
}