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