]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-20727-3.rs
Re-add #[allow(unused)] attr
[rust.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 - '//*[@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 }