]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-20175.rs
Rollup merge of #106407 - mejrs:attr_check, r=compiler-errors
[rust.git] / tests / rustdoc / issue-20175.rs
1 pub trait Foo {
2     fn foo(&self) {}
3 }
4
5 pub struct Bar;
6
7 // @has issue_20175/struct.Bar.html \
8 //      '//*[@id="method.foo"]' \
9 //      'fn foo'
10 impl<'a> Foo for &'a Bar {}