]>
Commit | Line | Data |
---|---|---|
9346a6ac | 1 | // aux-build:issue-20727.rs |
d9579d0f | 2 | // ignore-cross-compile |
9346a6ac AL |
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 - '//*[@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 | |
19 | pub 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 | } |