rust/tests/rustdoc/masked.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
741 B
Rust
Raw Normal View History

// 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'
2022-08-12 04:44:07 +00:00
// @!hasraw 'foo/struct.String.html' 'MaskedTrait'
// @!hasraw 'foo/struct.String.html' 'MaskedBlanketTrait'
2022-08-12 04:44:07 +00:00
// @!hasraw 'foo/struct.String.html' 'masked_method'
pub use std::string::String;
2022-08-12 04:44:07 +00:00
// @!hasraw 'foo/trait.Clone.html' 'MaskedStruct'
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'
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'
pub trait MyTrait {}
impl MyTrait for masked::MaskedStruct {}