1 // aux-build:issue-20727.rs
2 // ignore-cross-compile
4 extern crate issue_20727;
6 // @has issue_20727_4/trait.Index.html
7 pub trait Index<Idx: ?Sized> {
8 // @has - '//*[@class="rust trait"]' 'trait Index<Idx: ?Sized> {'
9 // @has - '//*[@class="rust trait"]' 'type Output: ?Sized'
12 // @has - '//*[@class="rust trait"]' \
13 // 'fn index(&self, index: Idx) -> &Self::Output'
14 fn index(&self, index: Idx) -> &Self::Output;
17 // @has issue_20727_4/trait.IndexMut.html
18 pub trait IndexMut<Idx: ?Sized>: Index<Idx> {
19 // @has - '//*[@class="rust trait"]' \
20 // 'trait IndexMut<Idx: ?Sized>: Index<Idx> {'
21 // @has - '//*[@class="rust trait"]' \
22 // 'fn index_mut(&mut self, index: Idx) -> &mut Self::Output;'
23 fn index_mut(&mut self, index: Idx) -> &mut Self::Output;
27 // @has issue_20727_4/reexport/trait.Index.html
28 // @has - '//*[@class="rust trait"]' 'trait Index<Idx>where Idx: ?Sized,{'
29 // @has - '//*[@class="rust trait"]' 'type Output: ?Sized'
30 // @has - '//*[@class="rust trait"]' \
31 // 'fn index(&self, index: Idx) -> &Self::Output'
32 pub use issue_20727::Index;
34 // @has issue_20727_4/reexport/trait.IndexMut.html
35 // @has - '//*[@class="rust trait"]' \
36 // 'trait IndexMut<Idx>: Index<Idx>where Idx: ?Sized,{'
37 // @has - '//*[@class="rust trait"]' \
38 // 'fn index_mut(&mut self, index: Idx) -> &mut Self::Output;'
39 pub use issue_20727::IndexMut;