]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/recursive-deref.rs
Rollup merge of #89317 - JulianKnodt:precise_errors, r=BoxyUwU
[rust.git] / src / test / rustdoc / recursive-deref.rs
1 use std::ops::Deref;
2
3 pub struct A;
4 pub struct B;
5
6 // @has recursive_deref/struct.A.html '//h3[@class="code-header in-band"]' 'impl Deref for A'
7 impl Deref for A {
8     type Target = B;
9
10     fn deref(&self) -> &Self::Target {
11         panic!()
12     }
13 }
14
15 // @has recursive_deref/struct.B.html '//h3[@class="code-header in-band"]' 'impl Deref for B'
16 impl Deref for B {
17     type Target = A;
18
19     fn deref(&self) -> &Self::Target {
20         panic!()
21     }
22 }