summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-20175.rs
blob: 6a42e2afbf43c943d06ceb01cc8f660fae634637 (plain)
1
2
3
4
5
6
7
8
9
10
pub trait Foo {
    fn foo(&self) {}
}

pub struct Bar;

// @has issue_20175/struct.Bar.html \
//      '//*[@id="method.foo"]' \
//      'fn foo'
impl<'a> Foo for &'a Bar {}