-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove code for recursive Deref in sidebar
fix #85037
- Loading branch information
1 parent
aee50f4
commit 2d76d44
Showing
2 changed files
with
24 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use std::ops::Deref; | ||
|
||
pub struct A {} | ||
impl A { pub fn foo_a(&self) {} } | ||
|
||
pub struct B {} | ||
impl B { pub fn foo_b(&self) {} } | ||
|
||
pub struct C {} | ||
impl C { pub fn foo_c(&self) {} } | ||
|
||
// @has issue_85037/struct.A.html '//div[@class="sidebar-links"]' 'foo_b' | ||
impl Deref for A { | ||
type Target = B; | ||
fn deref(&self) -> &B { todo!() } | ||
} | ||
|
||
// @!has issue_85037/struct.A.html '//div[@class="sidebar-links"]' 'foo_c' | ||
impl Deref for B { | ||
type Target = C; | ||
fn deref(&self) -> &C { todo!() } | ||
} |