]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/search-index.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / rustdoc / search-index.rs
CommitLineData
1a4d82fc 1#![crate_name = "rustdoc_test"]
223e47cc 2
62682a34
SL
3use std::ops::Deref;
4
f2b60f7d 5// @hasraw search-index.js Foo
1a4d82fc 6pub use private::Foo;
223e47cc 7
1a4d82fc
JJ
8mod 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
20pub struct Bar;
21
22impl Deref for Bar {
f2b60f7d 23 // @!hasraw search-index.js Target
62682a34
SL
24 type Target = Bar;
25 fn deref(&self) -> &Bar { self }
26}