Skip to content

Commit

Permalink
Add test for issue 74083
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jul 6, 2020
1 parent e0b69f2 commit 368aa6f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/rustdoc/issue-74083.rs
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 368aa6f

Please sign in to comment.