1 // aux-build:masked.rs 2 3 #![feature(doc_masked)] 4 5 #![crate_name = "foo"] 6 7 #[doc(masked)] 8 extern crate masked; 9 10 // @!has 'search-index.js' 'masked_method' 11 12 // @!has 'foo/struct.String.html' 'MaskedTrait' 13 // @!has 'foo/struct.String.html' 'masked_method' 14 pub use std::string::String; 15 16 // @!has 'foo/trait.Clone.html' 'MaskedStruct' 17 pub use std::clone::Clone; 18 19 // @!has 'foo/struct.MyStruct.html' 'MaskedTrait' 20 // @!has 'foo/struct.MyStruct.html' 'masked_method' 21 pub struct MyStruct; 22 23 impl masked::MaskedTrait for MyStruct { masked_method()24 fn masked_method() {} 25 } 26 27 // @!has 'foo/trait.MyTrait.html' 'MaskedStruct' 28 pub trait MyTrait {} 29 30 impl MyTrait for masked::MaskedStruct {} 31