]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-20727.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / rustdoc / issue-20727.rs
1 // aux-build:issue-20727.rs
2 // ignore-cross-compile
3
4 extern crate issue_20727;
5
6 // @has issue_20727/trait.Deref.html
7 pub trait Deref {
8     // @has - '//pre[@class="rust item-decl"]' 'trait Deref {'
9     // @has - '//pre[@class="rust item-decl"]' 'type Target: ?Sized;'
10     type Target: ?Sized;
11
12     // @has - '//pre[@class="rust item-decl"]' \
13     //        "fn deref<'a>(&'a self) -> &'a Self::Target;"
14     fn deref<'a>(&'a self) -> &'a Self::Target;
15 }
16
17 // @has issue_20727/reexport/trait.Deref.html
18 pub mod reexport {
19     // @has - '//pre[@class="rust item-decl"]' 'trait Deref {'
20     // @has - '//pre[@class="rust item-decl"]' 'type Target: ?Sized;'
21     // @has - '//pre[@class="rust item-decl"]' \
22     //      "fn deref<'a>(&'a self) -> &'a Self::Target;"
23     pub use issue_20727::Deref;
24 }