Add test for issue 74083
This commit is contained in:
parent
e0b69f207b
commit
368aa6f1e2
21
src/test/rustdoc/issue-74083.rs
Normal file
21
src/test/rustdoc/issue-74083.rs
Normal file
@ -0,0 +1,21 @@
|
||||
use std::ops::Deref;
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
impl Foo {
|
||||
pub fn foo(&mut self) {}
|
||||
}
|
||||
|
||||
// @has issue_74083/struct.Bar.html
|
||||
// !@has - '//div[@class="sidebar-links"]/a[@href="#method.foo"]' 'foo'
|
||||
pub struct Bar {
|
||||
foo: Foo,
|
||||
}
|
||||
|
||||
impl Deref for Bar {
|
||||
type Target = Foo;
|
||||
|
||||
fn deref(&self) -> &Foo {
|
||||
&self.foo
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user