summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/method-list.rs
blob: 50f4af3aaafef91a61c64eb786846e1486544bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![crate_name = "foo"]

// @has foo/struct.Foo.html
// @has - '//*[@class="sidebar-elems"]//section//a' 'super_long_name'
// @has - '//*[@class="sidebar-elems"]//section//a' 'Disp'
pub struct Foo(usize);

impl Foo {
    pub fn super_long_name() {}
}

pub trait Disp {
    fn disp_trait_method();
}

impl Disp for Foo {
    fn disp_trait_method() {}
}