]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-19190.rs
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / rustdoc / issue-19190.rs
1 use std::ops::Deref;
2
3 pub struct Foo;
4 pub struct Bar;
5
6 impl Foo {
7     pub fn foo(&self) {}
8     pub fn static_foo() {}
9 }
10
11 impl Deref for Bar {
12     type Target = Foo;
13     fn deref(&self) -> &Foo { loop {} }
14 }
15
16 // @has issue_19190/struct.Bar.html
17 // @has - '//*[@id="method.foo"]//h4[@class="code-header"]' 'fn foo(&self)'
18 // @has - '//*[@id="method.foo"]' 'fn foo(&self)'
19 // @!has - '//*[@id="method.static_foo"]//h4[@class="code-header"]' 'fn static_foo()'
20 // @!has - '//*[@id="method.static_foo"]' 'fn static_foo()'