]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/auxiliary/issue-20727.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / auxiliary / issue-20727.rs
1 // compile-flags: -Cmetadata=aux
2
3 pub trait Deref {
4     type Target: ?Sized;
5
6     fn deref<'a>(&'a self) -> &'a Self::Target;
7 }
8
9 pub trait Add<RHS = Self> {
10     type Output;
11
12     fn add(self, rhs: RHS) -> Self::Output;
13 }
14
15
16 pub trait Bar {}
17 pub trait Deref2 {
18     type Target: Bar;
19
20     fn deref(&self) -> Self::Target;
21 }
22
23 pub trait Index<Idx: ?Sized> {
24     type Output: ?Sized;
25     fn index(&self, index: Idx) -> &Self::Output;
26 }
27
28 pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
29     fn index_mut(&mut self, index: Idx) -> &mut Self::Output;
30 }