]> git.proxmox.com Git - rustc.git/blame - tests/rustdoc/issue-20727.rs
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / rustdoc / issue-20727.rs
CommitLineData
9c376795
FG
1// aux-build:issue-20727.rs
2// ignore-cross-compile
3
4extern crate issue_20727;
5
6// @has issue_20727/trait.Deref.html
7pub trait Deref {
9ffffee4
FG
8 // @has - '//pre[@class="rust item-decl"]' 'trait Deref {'
9 // @has - '//pre[@class="rust item-decl"]' 'type Target: ?Sized;'
9c376795
FG
10 type Target: ?Sized;
11
9ffffee4 12 // @has - '//pre[@class="rust item-decl"]' \
9c376795
FG
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
18pub mod reexport {
9ffffee4
FG
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"]' \
9c376795
FG
22 // "fn deref<'a>(&'a self) -> &'a Self::Target;"
23 pub use issue_20727::Deref;
24}