2015-04-07 02:16:35 -05:00
|
|
|
//@ aux-build:issue-20727.rs
|
2015-04-22 17:22:36 -05:00
|
|
|
//@ ignore-cross-compile
|
2015-04-07 02:16:35 -05:00
|
|
|
|
2023-09-27 19:22:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/20727
|
2023-09-27 18:51:21 -05:00
|
|
|
#![crate_name="issue_20727"]
|
|
|
|
|
2015-04-07 02:16:35 -05:00
|
|
|
extern crate issue_20727;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20727/trait.Deref.html
|
2015-04-07 02:16:35 -05:00
|
|
|
pub trait Deref {
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'trait Deref {'
|
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'type Target: ?Sized;'
|
2015-04-07 02:16:35 -05:00
|
|
|
type Target: ?Sized;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//pre[@class="rust item-decl"]' \
|
2015-04-07 02:16:35 -05:00
|
|
|
// "fn deref<'a>(&'a self) -> &'a Self::Target;"
|
|
|
|
fn deref<'a>(&'a self) -> &'a Self::Target;
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_20727/reexport/trait.Deref.html
|
2015-04-07 02:16:35 -05:00
|
|
|
pub mod reexport {
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'trait Deref {'
|
|
|
|
//@ has - '//pre[@class="rust item-decl"]' 'type Target: ?Sized;'
|
|
|
|
//@ has - '//pre[@class="rust item-decl"]' \
|
2022-11-02 09:10:36 -05:00
|
|
|
// "fn deref<'a>(&'a self) -> &'a Self::Target;"
|
2015-04-07 02:16:35 -05:00
|
|
|
pub use issue_20727::Deref;
|
|
|
|
}
|