Part of #87059 Partially reverts #84703 Preview at: https://notriddle.com/notriddle-rustdoc-test/real-headers/std/index.html
22 lines
450 B
Rust
22 lines
450 B
Rust
use std::ops::Deref;
|
|
|
|
pub struct A;
|
|
pub struct B;
|
|
|
|
// @has recursive_deref/struct.A.html '//h3[@class="code-header in-band"]' 'impl Deref for A'
|
|
impl Deref for A {
|
|
type Target = B;
|
|
|
|
fn deref(&self) -> &Self::Target {
|
|
panic!()
|
|
}
|
|
}
|
|
|
|
// @has recursive_deref/struct.B.html '//h3[@class="code-header in-band"]' 'impl Deref for B'
|
|
impl Deref for B {
|
|
type Target = A;
|
|
|
|
fn deref(&self) -> &Self::Target {
|
|
panic!()
|
|
}
|
|
}
|