]>
Commit | Line | Data |
---|---|---|
1a4d82fc | 1 | #![crate_name = "rustdoc_test"] |
223e47cc | 2 | |
62682a34 SL |
3 | use std::ops::Deref; |
4 | ||
f2b60f7d | 5 | // @hasraw search-index.js Foo |
1a4d82fc | 6 | pub use private::Foo; |
223e47cc | 7 | |
1a4d82fc JJ |
8 | mod private { |
9 | pub struct Foo; | |
10 | impl Foo { | |
f2b60f7d FG |
11 | pub fn test_method() {} // @hasraw - test_method |
12 | fn priv_method() {} // @!hasraw - priv_method | |
1a4d82fc | 13 | } |
223e47cc | 14 | |
1a4d82fc | 15 | pub trait PrivateTrait { |
f2b60f7d | 16 | fn trait_method(&self) {} // @!hasraw - priv_method |
1a4d82fc | 17 | } |
223e47cc | 18 | } |
62682a34 SL |
19 | |
20 | pub struct Bar; | |
21 | ||
22 | impl Deref for Bar { | |
f2b60f7d | 23 | // @!hasraw search-index.js Target |
62682a34 SL |
24 | type Target = Bar; |
25 | fn deref(&self) -> &Bar { self } | |
26 | } |