blob: a92db2d0a665b716126df90ec5221cba7e050060 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// https://github.com/rust-lang/rust/issues/20175
#![crate_name="issue_20175"]
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 {}
|