]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-20727-2.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / rustdoc / issue-20727-2.rs
1 // aux-build:issue-20727.rs
2 // ignore-cross-compile
3
4 extern crate issue_20727;
5
6 // @has issue_20727_2/trait.Add.html
7 pub trait Add<RHS = Self> {
8     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'trait Add<RHS = Self> {'
9     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type Output;'
10     type Output;
11
12     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'fn add(self, rhs: RHS) -> Self::Output;'
13     fn add(self, rhs: RHS) -> Self::Output;
14 }
15
16 // @has issue_20727_2/reexport/trait.Add.html
17 pub mod reexport {
18     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'trait Add<RHS = Self> {'
19     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type Output;'
20     // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'fn add(self, rhs: RHS) -> Self::Output;'
21     pub use issue_20727::Add;
22 }