mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
11 lines
174 B
Rust
11 lines
174 B
Rust
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 {}
|