]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/recursive-deref.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[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 }