parent
9089771daf
commit
aee50f417f
2 changed files with 39 additions and 3 deletions
22
src/test/rustdoc/issue-85095.rs
Normal file
22
src/test/rustdoc/issue-85095.rs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
use std::ops::Deref;
|
||||
|
||||
pub struct A;
|
||||
pub struct B;
|
||||
|
||||
// @has issue_85095/struct.A.html '//code' 'impl Deref for A'
|
||||
impl Deref for A {
|
||||
type Target = B;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
panic!()
|
||||
}
|
||||
}
|
||||
|
||||
// @has issue_85095/struct.B.html '//code' 'impl Deref for B'
|
||||
impl Deref for B {
|
||||
type Target = A;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
panic!()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue