about summary refs log tree commit diff
path: root/src/test/rustdoc/trait-src-link.rs
blob: 77116695690fc75366d3ef4ddbf62b28a70bf10a (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"]' '[src]'
    fn required();

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

pub struct Bar;

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

pub struct Baz;

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

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