2018-01-23 04:22:20 +00:00
|
|
|
//@ aux-build:masked.rs
|
|
|
|
|
|
|
|
#![feature(doc_masked)]
|
|
|
|
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
|
|
|
#[doc(masked)]
|
|
|
|
extern crate masked;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ !hasraw 'search-index.js' 'masked_method'
|
2018-01-23 04:22:20 +00:00
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ !hasraw 'foo/struct.String.html' 'MaskedTrait'
|
|
|
|
//@ !hasraw 'foo/struct.String.html' 'MaskedBlanketTrait'
|
|
|
|
//@ !hasraw 'foo/struct.String.html' 'masked_method'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub use std::string::String;
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ !hasraw 'foo/trait.Clone.html' 'MaskedStruct'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub use std::clone::Clone;
|
|
|
|
|
2024-06-21 12:03:08 +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() {}
|
|
|
|
}
|
|
|
|
|
2024-06-21 12:03:08 +00:00
|
|
|
//@ !hasraw 'foo/trait.MyTrait.html' 'MaskedStruct'
|
2018-01-23 04:22:20 +00:00
|
|
|
pub trait MyTrait {}
|
|
|
|
|
|
|
|
impl MyTrait for masked::MaskedStruct {}
|