2017-11-03 12:39:00 -05:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
// @has foo/struct.Foo.html
|
2022-02-08 10:05:00 -06:00
|
|
|
// @has - '//*[@class="sidebar-elems"]//section//a' 'super_long_name'
|
|
|
|
// @has - '//*[@class="sidebar-elems"]//section//a' 'Disp'
|
2017-11-03 12:39:00 -05:00
|
|
|
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() {}
|
|
|
|
}
|