]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/issue-20727-3.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc / issue-20727-3.rs
1 // aux-build:issue-20727.rs
2 // ignore-cross-compile
3
4 extern crate issue_20727;
5
6 pub trait Bar {}
7
8 // @has issue_20727_3/trait.Deref2.html
9 pub trait Deref2 {
10 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'trait Deref2 {'
11 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type Target: Bar;'
12 type Target: Bar;
13
14 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'fn deref(&self) -> Self::Target;'
15 fn deref(&self) -> Self::Target;
16 }
17
18 // @has issue_20727_3/reexport/trait.Deref2.html
19 pub mod reexport {
20 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'trait Deref2 {'
21 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'type Target: Bar;'
22 // @has - '//div[@class="item-decl"]/pre[@class="rust"]' 'fn deref(&self) -> Self::Target;'
23 pub use issue_20727::Deref2;
24 }