]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/recursive-deref-sidebar.rs
Bless updated output from print-type-sizes tests.
[rust.git] / tests / rustdoc / recursive-deref-sidebar.rs
1 use std::ops::Deref;
2
3 pub struct A {}
4 impl A { pub fn foo_a(&self) {} }
5
6 pub struct B {}
7 impl B { pub fn foo_b(&self) {} }
8
9 pub struct C {}
10 impl C { pub fn foo_c(&self) {} }
11
12 // @has recursive_deref_sidebar/struct.A.html '//*[@class="sidebar-elems"]//section' 'foo_b'
13 impl Deref for A {
14     type Target = B;
15     fn deref(&self) -> &B { todo!() }
16 }
17
18 // @has recursive_deref_sidebar/struct.A.html '//*[@class="sidebar-elems"]//section' 'foo_c'
19 impl Deref for B {
20     type Target = C;
21     fn deref(&self) -> &C { todo!() }
22 }