2014-08-26 22:03:39 -04:00
|
|
|
#![crate_name = "rustdoc_test"]
|
|
|
|
|
2015-05-21 14:17:37 +02:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
2022-08-10 13:13:18 -07:00
|
|
|
// @hasraw search-index.js Foo
|
2014-08-26 22:03:39 -04:00
|
|
|
pub use private::Foo;
|
|
|
|
|
|
|
|
mod private {
|
|
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
2022-08-10 13:13:18 -07:00
|
|
|
pub fn test_method() {} // @hasraw - test_method
|
2015-01-18 02:24:04 +09:00
|
|
|
fn priv_method() {} // @!has - priv_method
|
2014-08-26 22:03:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
pub trait PrivateTrait {
|
2015-02-12 10:29:52 -05:00
|
|
|
fn trait_method(&self) {} // @!has - priv_method
|
2014-08-26 22:03:39 -04:00
|
|
|
}
|
|
|
|
}
|
2015-05-21 14:17:37 +02:00
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
impl Deref for Bar {
|
|
|
|
// @!has search-index.js Target
|
|
|
|
type Target = Bar;
|
|
|
|
fn deref(&self) -> &Bar { self }
|
|
|
|
}
|