rust/tests/rustdoc/impl-ref-20175.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
255 B
Rust
Raw Normal View History

2023-09-27 19:22:18 -05:00
// 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 {}