2023-09-27 19:22:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/20175
|
|
|
|
|
2023-09-27 18:51:21 -05:00
|
|
|
#![crate_name="issue_20175"]
|
|
|
|
|
2015-04-06 22:15:59 -05:00
|
|
|
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 {}
|