]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/masked.rs
Rollup merge of #107819 - clubby789:x-py-root, r=jyn514
[rust.git] / tests / rustdoc / masked.rs
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 // @!hasraw 'search-index.js' 'masked_method'
11
12 // @!hasraw 'foo/struct.String.html' 'MaskedTrait'
13 // @!hasraw 'foo/struct.String.html' 'MaskedBlanketTrait'
14 // @!hasraw 'foo/struct.String.html' 'masked_method'
15 pub use std::string::String;
16
17 // @!hasraw 'foo/trait.Clone.html' 'MaskedStruct'
18 pub use std::clone::Clone;
19
20 // @!hasraw 'foo/struct.MyStruct.html' 'MaskedTrait'
21 // @!hasraw 'foo/struct.MyStruct.html' 'masked_method'
22 pub struct MyStruct;
23
24 impl masked::MaskedTrait for MyStruct {
25     fn masked_method() {}
26 }
27
28 // @!hasraw 'foo/trait.MyTrait.html' 'MaskedStruct'
29 pub trait MyTrait {}
30
31 impl MyTrait for masked::MaskedStruct {}