2018-01-23 04:22:20 +00:00
|
|
|
// aux-build:masked.rs
|
|
|
|
|
|
|
|
#![feature(doc_masked)]
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#[doc(masked)]
|
|
|
|
extern crate masked;
|
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'search-index.js' 'masked_method'
|
2018-01-23 04:22:20 +00:00
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'foo/struct.String.html' 'MaskedTrait'
|
2022-10-19 15:43:21 +00:00
|
|
|
// @!hasraw 'foo/struct.String.html' 'MaskedBlanketTrait'
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'foo/struct.String.html' 'masked_method'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub use std::string::String;
|
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'foo/trait.Clone.html' 'MaskedStruct'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub use std::clone::Clone;
|
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'foo/struct.MyStruct.html' 'MaskedTrait'
|
|
|
|
// @!hasraw 'foo/struct.MyStruct.html' 'masked_method'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub struct MyStruct;
|
|
|
|
|
|
|
|
impl masked::MaskedTrait for MyStruct {
|
|
|
|
fn masked_method() {}
|
|
|
|
}
|
|
|
|
|
2022-08-12 04:44:07 +00:00
|
|
|
// @!hasraw 'foo/trait.MyTrait.html' 'MaskedStruct'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub trait MyTrait {}
|
|
|
|
|
|
|
|
impl MyTrait for masked::MaskedStruct {}
|