2023-09-27 17:22:18 -07:00
|
|
|
// https://github.com/rust-lang/rust/issues/20175
|
|
|
|
|
2023-09-27 16:51:21 -07:00
|
|
|
#![crate_name="issue_20175"]
|
|
|
|
|
2015-04-06 20:15:59 -07:00
|
|
|
pub trait Foo {
|
|
|
|
fn foo(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
2024-06-21 14:03:08 +02:00
|
|
|
//@ has issue_20175/struct.Bar.html \
|
2015-04-06 20:15:59 -07:00
|
|
|
// '//*[@id="method.foo"]' \
|
|
|
|
// 'fn foo'
|
|
|
|
impl<'a> Foo for &'a Bar {}
|